import { IErrorInfo, ErrorType } from "./ErrorInfo"; export { ErrorInfoMap, IErrorInfo, ErrorType } from "./ErrorInfo"; /** * TranelError * * @export * @class TranelError * @extends {Error} */ export default class TranelError extends Error { type: ErrorType; originError: Error; static ErrorInfoMap: { 0: { level: string; code: number; description: string; detail: string; }; 1: { level: string; code: number; description: string; detail: string; }; 2: { level: string; code: number; description: string; detail: string; }; 3: { level: string; code: number; description: string; detail: string; }; 4: { level: string; code: number; description: string; detail: string; }; 5: { level: string; code: number; description: string; detail: string; }; 6: { level: string; code: number; description: string; detail: string; }; 7: { level: string; code: number; description: string; detail: string; }; 8: { level: string; code: number; description: string; detail: string; }; }; static ErrorType: typeof ErrorType; info: IErrorInfo; constructor(type: ErrorType, originError: Error); toString(): this; }