UNPKG

@bitzonegaming/roleplay-engine-sdk

Version:
18 lines (17 loc) 528 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.EngineError = void 0; class EngineError extends Error { constructor(key, message, params, statusCode, details) { super(message); this.key = key; this.name = key; this.params = params; this.statusCode = statusCode; this.details = details; if (Error.captureStackTrace) { Error.captureStackTrace(this, this.constructor); } } } exports.EngineError = EngineError;