UNPKG

@athenna/http

Version:

The Athenna Http server. Built on top of fastify.

20 lines (19 loc) 623 B
/** * @athenna/ioc * * (c) João Lenon <lenon@athenna.io> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ import { Exception } from '@athenna/common'; export class NotFoundControllerException extends Exception { constructor(alias) { super({ status: 500, code: 'E_NOT_FOUND_CONTROLLER_ERROR', message: `The controller with ${alias} alias has not been found inside the container.`, help: `Remember to register the controller in your .athennarc.json file.` }); } }