@rafat97/exceptionhandler
Version:
All types exception handler classes definition
28 lines • 921 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.UndefinedError = void 0;
const CommonMongoServerError_1 = require("./CommonMongoServerError");
class UndefinedError extends CommonMongoServerError_1.CommonMongoServerError {
constructor() {
super("Undefined Error");
this.statusCode = 409;
this.mongoServerErrorCode = 0;
this.message = "Undefined Error";
Object.setPrototypeOf(this, UndefinedError.prototype);
}
getStatusCode() {
return this.statusCode;
}
getMongoDbErrorCode() {
return this.mongoServerErrorCode;
}
serializeErrors() {
return {
message: this.message,
details: [],
mongoServerErrorCode: this.mongoServerErrorCode,
};
}
}
exports.UndefinedError = UndefinedError;
//# sourceMappingURL=UndefinedError.js.map