sipp
Version:
An Opinionated, High-Productivity MVC Web Framework in TypeScript
22 lines • 571 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.BaseException = void 0;
class BaseException extends Error {
constructor() {
super(...arguments);
this.code = 500;
}
static toException(e) {
if (e instanceof BaseException) {
return e;
}
const exception = new this(e.message);
exception.stack = e.stack;
return exception;
}
getDescription() {
return '';
}
}
exports.BaseException = BaseException;
//# sourceMappingURL=BaseException.js.map