UNPKG

@speckle/shared

Version:

Shared code between various Speckle JS packages

17 lines 746 B
declare class UnexpectedErrorStructureError extends Error { } /** * In JS catch clauses can receive not only Errors, but pretty much any other kind of data type, so * you can use this helper to ensure that whatever is passed in is a real error */ export declare function ensureError(e: unknown, fallbackMessage?: string): Error | UnexpectedErrorStructureError; export declare function throwUncoveredError(e: never): never; export declare class UncoveredError extends Error { } export declare function createUncoveredError(e: unknown): UncoveredError; /** * Note: Only V8 and Node.js support controlling the stack trace limit */ export declare const collectLongTrace: (limit?: number) => string; export {}; //# sourceMappingURL=error.d.ts.map