Skip to content

fix(onramp): suppress Bugsnag reporting for user-caused onramp web errors#897

Merged
bmc08gt merged 1 commit into
code/cashfrom
fix/onramp-web-error-notifiability
Jun 13, 2026
Merged

fix(onramp): suppress Bugsnag reporting for user-caused onramp web errors#897
bmc08gt merged 1 commit into
code/cashfrom
fix/onramp-web-error-notifiability

Conversation

@bmc08gt

@bmc08gt bmc08gt commented Jun 13, 2026

Copy link
Copy Markdown
Collaborator

CoinbaseOnRampWebError extends plain Throwable, so ErrorUtils.handleError falls through to throwableCause !is CodeServerError which defaults isNotifiable to true — causing every user-caused error (card declines, region mismatches, GPay not supported, etc.) to be reported to Bugsnag.

Make the base sealed class implement ConditionallyNotifiable with isNotifiable = false. Subclasses representing genuine unexpected failures (UnknownFailure, InternalFailure, SendFailed, ProcessingFailed) retain NotifiableError with an explicit override.

…rors

CoinbaseOnRampWebError extends plain Throwable, so ErrorUtils.handleError
falls through to `throwableCause !is CodeServerError` which defaults
isNotifiable to true — causing every user-caused error (card declines,
region mismatches, GPay not supported, etc.) to be reported to Bugsnag.

Make the base sealed class implement ConditionallyNotifiable with
isNotifiable = false. Subclasses representing genuine unexpected failures
(UnknownFailure, InternalFailure, SendFailed, ProcessingFailed) retain
NotifiableError with an explicit override.

Signed-off-by: Brandon McAnsh <git@bmcreations.dev>
@bmc08gt bmc08gt self-assigned this Jun 13, 2026
@github-actions github-actions Bot added area: onramp Deposit, purchase, Coinbase, fiat on-ramp type: fix Bug fix labels Jun 13, 2026
@bmc08gt bmc08gt merged commit 7c3c163 into code/cash Jun 13, 2026
3 checks passed
@bmc08gt bmc08gt deleted the fix/onramp-web-error-notifiability branch June 13, 2026 19:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: onramp Deposit, purchase, Coinbase, fiat on-ramp type: fix Bug fix

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant