UNPKG

@othree.io/excuses

Version:

Excuses

18 lines 676 B
/** * Custom Error class representing a not found error. */ export declare class NotFoundError extends Error { /** Static error code to identify the error type. */ static ERROR: string; /** Identifier associated with the not-found resource. */ id?: string; /** * Creates a new NotFoundError. * * @param {string} [id] - Identifier associated with the not-found resource. * @param {string} [type] - Type or category of the resource that was not found. * @param {string} [message] - Optional custom error message. */ constructor(id?: string, type?: string, message?: string); } //# sourceMappingURL=not-found-error.d.ts.map