UNPKG

routing-controllers

Version:

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

12 lines 618 B
import { InternalServerError } from '../http-error/InternalServerError'; /** * Thrown when currentUserChecker function is not defined in routing-controllers options. */ export class CurrentUserCheckerNotDefinedError extends InternalServerError { constructor() { super(`Cannot use @CurrentUser decorator. Please define currentUserChecker function in routing-controllers action before using it.`); this.name = 'CurrentUserCheckerNotDefinedError'; Object.setPrototypeOf(this, CurrentUserCheckerNotDefinedError.prototype); } } //# sourceMappingURL=CurrentUserCheckerNotDefinedError.js.map