@metamask/multichain-account-service
Version:
Service to manage multichain accounts
16 lines • 772 B
text/typescript
/**
* Reports an error by logging it and optionally capturing it in Sentry.
*
* Timeout errors are treated as warnings (not reported to Sentry). All other
* errors are logged as errors and captured via `captureException`.
*
* @param messenger - Object with an optional `captureException` method.
* @param messenger.captureException - Optional method to capture exceptions in Sentry.
* @param message - The static message describing what failed.
* @param error - The caught error.
* @param context - Optional context to attach to the Sentry error.
*/
export declare function reportError(messenger: {
captureException?: (error: Error) => void;
}, message: string, error: unknown, context?: Record<string, unknown>): void;
//# sourceMappingURL=errors.d.mts.map