UNPKG

@bitzonegaming/roleplay-engine-sdk

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