routing-controllers
Version:
Create structured, declarative and beautifully organized class-based controllers with heavy decorators usage for Express / Koa using TypeScript.
14 lines • 381 B
JavaScript
import { HttpError } from './HttpError';
/**
* Exception for 404 HTTP error.
*/
export class NotFoundError extends HttpError {
constructor(message) {
super(404);
this.name = 'NotFoundError';
Object.setPrototypeOf(this, NotFoundError.prototype);
if (message)
this.message = message;
}
}
//# sourceMappingURL=NotFoundError.js.map