UNPKG

typenexus

Version:

TypeNexus is a good tool for API encapsulation and management. It provides a clean and lightweight way to package TypeORM functionality, helping you build applications faster while reducing template code redundancy and type conversion work.

16 lines (13 loc) 535 B
import { InternalServerError } from './InternalServerError.js'; /** * Thrown when authorizationChecker function is not defined in `TypeNexus` options. */ export class AuthorizationCheckerNotDefinedError extends InternalServerError { name = 'AuthorizationCheckerNotDefinedError'; constructor() { super( `Cannot use @Authorized decorator. Please define 'authorizationChecker' function in "TypeNexus" action before using it.`, ); Object.setPrototypeOf(this, AuthorizationCheckerNotDefinedError.prototype); } }