UNPKG

@neylion/exceptions

Version:

Exceptions commonly used within ney projects

29 lines (28 loc) 742 B
export interface IException extends IExceptionBase { config?: any; stack?: any; isApplicationError?: boolean; location?: string[]; } export interface IExceptionBase { message: string; statusCode: number; errorCode?: number; type: string; typeDescription: string; innerException?: IException; [key: string]: any; } export declare class Exception extends Error implements IException { name: string; message: string; statusCode: number; errorCode?: number; type: string; typeDescription: string; isApplicationError: boolean; innerException?: any; location: string[]; [key: string]: any; constructor(message: string, innerException?: any, stack?: string); }