@neylion/exceptions
Version:
Exceptions commonly used within ney projects
15 lines (14 loc) • 633 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
const Exception_1 = require("./Exception");
class AssertionFailedException extends Exception_1.Exception {
constructor(message, innerException) {
super(message, innerException);
this.name = "AssertionFailedException";
this.statusCode = 500;
this.type = "assertionFailed";
this.typeDescription =
"Assertions failing means there is an internal problem. In case you see this issue as a client, please report it to the service team.";
}
}
exports.AssertionFailedException = AssertionFailedException;