UNPKG

routing-controllers

Version:

Create structured, declarative and beautifully organized class-based controllers with heavy decorators usage for Express / Koa using TypeScript.

18 lines 614 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.UnprocessableEntityError = void 0; const HttpError_1 = require("./HttpError"); /** * Exception for 422 HTTP error. */ class UnprocessableEntityError extends HttpError_1.HttpError { constructor(message) { super(422); this.name = 'UnprocessableEntityError'; Object.setPrototypeOf(this, UnprocessableEntityError.prototype); if (message) this.message = message; } } exports.UnprocessableEntityError = UnprocessableEntityError; //# sourceMappingURL=UnprocessableEntityError.js.map