@wandelbots/nova-js
Version:
Official JS client for the Wandelbots API
15 lines • 741 B
TypeScript
export declare function delay(ms: number): Promise<unknown>;
/**
* @deprecated Use makeErrorMessage instead and truncate the error for display as needed, or make a situation-specific localized error message based on a response code
*/
export declare function makeShortErrorMessage(err: unknown): string;
/**
* Attempts to make a helpful error message from an unknown thrown error
* or promise rejection.
*
* This function is mainly to aid debugging and good bug reports. For
* expected errors encountered by end users, it's more ideal to catch
* the specific error code and provide a localized app-specific error message.
*/
export declare function makeErrorMessage(err: unknown): string;
//# sourceMappingURL=errorHandling.d.ts.map