@webbio/viper-core-utils
Version:
Webbio's error interface which is used in the Viper Project
25 lines • 817 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
const tslib_1 = require("tslib");
const baseError_1 = tslib_1.__importDefault(require("./baseError"));
const sentry_logger_1 = tslib_1.__importDefault(require("./sentry.logger"));
class FatalError extends baseError_1.default {
/**
* An internal error that happened in the application
* @param name Name of the error
* @param message A descriptive message of the error
* @param stack The stack of the error
*/
constructor(name, message, stack) {
super(new sentry_logger_1.default(), name, message, stack);
this.report();
}
/**
* Report the error to Sentry
*/
report() {
super.report();
}
}
exports.default = FatalError;
//# sourceMappingURL=fatalError.js.map