@azure/core-util
Version:
Core library for shared utility methods
8 lines • 361 B
TypeScript
/**
* Given what is thought to be an error object, return the message if possible.
* If the message is missing, returns a stringified version of the input.
* @param e - Something thrown from a try block
* @returns The error message or a string of the input
*/
export declare function getErrorMessage(e: unknown): string;
//# sourceMappingURL=error.d.ts.map