UNPKG

routing-controllers

Version:

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

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