@datadog/mobile-react-native
Version:
A client-side React Native module to interact with Datadog
15 lines • 757 B
TypeScript
export declare const EMPTY_MESSAGE = "Unknown Error";
export declare const EMPTY_STACK_TRACE = "";
export declare const DEFAULT_ERROR_NAME = "Error";
export declare const getErrorMessage: (error: any | undefined) => string;
/**
* Will extract the stack from the error, taking the first key found among:
* `stacktrace`, `stack`, `componentStack` (component tree for component errors,
* which contains only native components names in production).
*
* In last resort and if `sourceURL`, `line` and `column` are present, it will
* generate a stack from this information.
*/
export declare const getErrorStackTrace: (error: any | undefined) => string;
export declare const getErrorName: (error: unknown) => string;
//# sourceMappingURL=errorUtils.d.ts.map