/** * Format of all layer exception */ export type ExceptionType = { status: number; message: string; fields?: any; debug?: any; }; export declare class Exception extends Error { status: number; fields?: any | undefined; raw?: unknown | undefined; constructor(message: string, status: number, fields?: any | undefined, raw?: unknown | undefined); getDebug(): any; toObject(): ExceptionType; toHtml(): string; /** * Convert ExceptionType object to an Exception instance */ static from(ex: ExceptionType): Exception; /** * Convert any unknown error type to an Exception instance */ static parse(error: unknown, statusCode?: number): Exception; }