UNPKG

routing-controllers

Version:

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

14 lines 425 B
import { HttpError } from './HttpError'; /** * Exception for 422 HTTP error. */ export class UnprocessableEntityError extends HttpError { constructor(message) { super(422); this.name = 'UnprocessableEntityError'; Object.setPrototypeOf(this, UnprocessableEntityError.prototype); if (message) this.message = message; } } //# sourceMappingURL=UnprocessableEntityError.js.map