UNPKG

435 BJavaScriptView Raw
1"use strict";
2Object.defineProperty(exports, "__esModule", { value: true });
3exports.CustomError = void 0;
4class CustomError extends Error {
5 constructor(message) {
6 super(message);
7 Object.setPrototypeOf(this, CustomError.prototype);
8 Error.captureStackTrace(this, this.constructor);
9 this.name = this.constructor.name;
10 }
11}
12exports.CustomError = CustomError;
13//# sourceMappingURL=custom-error.js.map
\No newline at end of file