Skip to content

catch throwable to suppress errors in Java - #1812

Merged
bruno-garcia merged 4 commits into
mainfrom
ref/catch-throwable
Nov 18, 2021
Merged

bruno-garcia merged 4 commits into
mainfrom
ref/catch-throwable

Conversation

@bruno-garcia

@bruno-garcia bruno-garcia commented Nov 17, 2021 •

Copy link
Copy Markdown
Member

The goal is to change code locations we suppress error to avoid the SDK bubbling errors to customers.

Firs try: I changed every match of catch (Exception to catch (Throwable. Not matching Kotlin code though, the main focus was to help avoid the case we had when debugging a crash on Unity with the Android SDK so mainly sentry-java and sentry-android-core.

Adding additional logging isn't in the scope of this PR. When it was simple I just added a debug log, but if no logger available, I added a TODO and we can have a follow up PR.

@maciejwalkowiak does this make sense on the Spring and other backend packages or should I revert?

Partially addresses #1806 (not doing the Kotlin code)

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants