@nestjs/common
Version:
Nest - modern, fast, powerful node.js web framework (@common)
12 lines (11 loc) • 676 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
const http_exception_1 = require("./http.exception");
const http_status_enum_1 = require("../enums/http-status.enum");
const http_exception_body_util_1 = require("../utils/http-exception-body.util");
class UnprocessableEntityException extends http_exception_1.HttpException {
constructor(message, error = 'Unprocessable Entity') {
super(http_exception_body_util_1.createHttpExceptionBody(message, error, http_status_enum_1.HttpStatus.UNPROCESSABLE_ENTITY), http_status_enum_1.HttpStatus.UNPROCESSABLE_ENTITY);
}
}
exports.UnprocessableEntityException = UnprocessableEntityException;