@mos-connection/helper
Version:
Helper functions for the MOS-connection library
17 lines • 588 B
TypeScript
export declare class ParseError {
static handleCaughtError(basePath: string, e: unknown): ParseError;
static isParseError(e: unknown): e is ParseError;
static fromError(e: Error, path: string): ParseError;
static handleError<T>(func: () => T, path: string): T;
name: string;
message: string;
stack: string | undefined;
orgMessage: string;
orgStack: string | undefined;
breadcrumbs: string[];
private constructor();
addBreadcrumb(path: string): void;
private updateVars;
toString(): string;
}
//# sourceMappingURL=ParseError.d.ts.map