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.

12 lines (11 loc) 519 B
import { InternalServerError } from './InternalServerError.js'; /** * Thrown when currentUserChecker function is not defined in TypeNexus options. */ export class CurrentUserCheckerNotDefinedError extends InternalServerError { name = 'CurrentUserCheckerNotDefinedError'; constructor() { super(`Cannot use @CurrentUser decorator. Please define currentUserChecker function in TypeNexus action before using it.`); Object.setPrototypeOf(this, CurrentUserCheckerNotDefinedError.prototype); } }