UNPKG

@metamask/multichain-account-service

Version:
16 lines 772 B
/** * 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.cts.map