You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(onramp): suppress Bugsnag reporting for user-caused onramp web errors
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>
Copy file name to clipboardExpand all lines: apps/flipcash/shared/onramp/coinbase/src/main/kotlin/com/flipcash/app/onramp/internal/CoinbaseOnRampEventHandler.kt
+11-3Lines changed: 11 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,6 @@
1
1
packagecom.flipcash.app.onramp.internal
2
2
3
+
importcom.getcode.utils.ConditionallyNotifiable
3
4
importcom.getcode.utils.NotifiableError
4
5
importcom.getcode.utils.TraceType
5
6
importcom.getcode.utils.trace
@@ -268,12 +269,14 @@ internal class CoinbaseOnRampEventHandler(
0 commit comments