UNPKG

@rafat97/exceptionhandler

Version:

All types exception handler classes definition

20 lines 665 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.ConflictException = void 0; const CustomError_1 = require("./CustomError"); class ConflictException extends CustomError_1.CustomError { constructor(message) { super(message); this.message = message; this.statusCode = 409; Object.setPrototypeOf(this, ConflictException.prototype); } getStatusCode() { return this.statusCode; } serializeErrors() { return { message: this.message, details: [] }; } } exports.ConflictException = ConflictException; //# sourceMappingURL=ConflictException.js.map