baset-vm
Version:
VM package for BaseT project.
20 lines • 486 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
/**
* VMError.
*
* @class
* @extends {Error}
* @property {String} stack Call stack.
* @property {String} message Error message.
*/
class VMError extends Error {
constructor(message, code) {
super(message);
this.code = code;
this.name = 'VMError';
Error.captureStackTrace(this, this.constructor);
}
}
exports.VMError = VMError;
//# sourceMappingURL=VMError.js.map