@daisugi/kintsugi
Version:
Kintsugi is a set of utilities to help build a fault tolerant services.
14 lines • 403 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.CustomError = void 0;
class CustomError extends Error {
code;
constructor(message, code) {
super(message);
this.code = code;
this.name = code;
Object.setPrototypeOf(this, CustomError.prototype);
}
}
exports.CustomError = CustomError;
//# sourceMappingURL=custom_error.js.map