@bitzonegaming/roleplay-engine-sdk
Version:
Roleplay Engine SDK
18 lines (17 loc) • 528 B
JavaScript
;
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;