UNPKG

@othree.io/excuses

Version:

Excuses

19 lines 701 B
import { ErrorDetails } from './types'; /** * Custom Error class representing an unexpected error. */ export declare class UnexpectedError extends Error { /** Static error code to identify the error type. */ static ERROR: string; /** Error code associated with this error instance. */ code?: string; errorDetails?: ErrorDetails; /** * Creates a new UnexpectedError. * * @param {string} [code] - Optional error code. * @param {string} [message] - Optional error message. If not provided, a default error message is generated by `getErrorJSONString`. */ constructor(code?: string, message?: string); } //# sourceMappingURL=unexpected-error.d.ts.map