@rafat97/exceptionhandler
Version:
All types exception handler classes definition
20 lines • 671 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.NotFoundValidation = void 0;
const CustomError_1 = require("./CustomError");
class NotFoundValidation extends CustomError_1.CustomError {
constructor(message) {
super(message);
this.message = message;
this.statusCode = 404;
Object.setPrototypeOf(this, NotFoundValidation.prototype);
}
getStatusCode() {
return this.statusCode;
}
serializeErrors() {
return { message: this.message, details: [] };
}
}
exports.NotFoundValidation = NotFoundValidation;
//# sourceMappingURL=NotFoundValidation.js.map