UNPKG

@egi/smart-db

Version:

Unified Smart DB Access

23 lines (22 loc) 699 B
import { SmartLocation, SmartSeverityLevel } from "@egi/smart-log"; export type SmartErrorLocation = SmartLocation; export interface SmartErrorData { code?: number | string; info?: Record<string, any>; location?: SmartLocation; message: string; name: string; timestamp?: Date | string | number; type?: SmartSeverityLevel; } export declare class SmartError extends Error implements SmartErrorData { code: number | string; info: Record<string, any>; location: SmartLocation; timestamp: Date | string | number; type: SmartSeverityLevel; private smartErrorKeys; constructor(message: any); toObject(): SmartErrorData; toString(): string; }