UNPKG

express-decorated-router

Version:

Define Express routes using TypeScript decorators

18 lines (17 loc) 500 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); /** * Thrown when a class decorated with @Parent was not annotated with @Controller */ class UnregisteredControllerError extends Error { /** * @internal * @hidden * @param clazz The class */ constructor(clazz) { super(`Controller class ${clazz.name} has not been registered`); this.controller = clazz; } } exports.UnregisteredControllerError = UnregisteredControllerError;