UNPKG

@maximai/maxim-js

Version:

Maxim AI JS SDK. Visit https://getmaxim.ai for more info.

20 lines (19 loc) 525 B
import { LogWriter } from "../writer"; import { BaseContainer } from "./base"; export type ErrorConfig = { id: string; message: string; code?: string; name?: string; type?: string; tags?: Record<string, string>; metadata?: Record<string, any>; }; export declare class Error extends BaseContainer { protected message: string; protected code?: string; protected errorType?: string; protected name?: string; constructor(config: ErrorConfig, writer: LogWriter); data(): any; }