UNPKG

libmodulor

Version:

A TypeScript library to create platform-agnostic applications

10 lines (9 loc) 292 B
import { CustomError } from './CustomError.js'; export class NotFoundError extends CustomError { httpStatus = 404; constructor(message) { super(message ?? 'Not found'); this.name = 'NotFoundError'; Object.setPrototypeOf(this, NotFoundError.prototype); } }