routing-controllers
Version:
Create structured, declarative and beautifully organized class-based controllers with heavy decorators usage for Express / Koa using TypeScript.
12 lines • 629 B
JavaScript
import { InternalServerError } from '../http-error/InternalServerError';
/**
* Thrown when authorizationChecker function is not defined in routing-controllers options.
*/
export class AuthorizationCheckerNotDefinedError extends InternalServerError {
constructor() {
super(`Cannot use @Authorized decorator. Please define authorizationChecker function in routing-controllers action before using it.`);
this.name = 'AuthorizationCheckerNotDefinedError';
Object.setPrototypeOf(this, AuthorizationCheckerNotDefinedError.prototype);
}
}
//# sourceMappingURL=AuthorizationCheckerNotDefinedError.js.map