Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove check of throwable type in uncaughtException handler #111

Merged
merged 6 commits into from
Jan 3, 2024

Conversation

BartoszLitwiniuk
Copy link
Collaborator

@BartoszLitwiniuk BartoszLitwiniuk commented Nov 16, 2023

This pull request addresses a specific issue related to the uncaughtException handler. Currently, the code checks if the throwable object is of type Exception. However, this prevents the registration of errors such as OutOfMemoryError, which do not extend from the Exception class.

In this pull request, I am proposing the removal of the check for the specific type Exception to ensure that errors like OutOfMemoryError are appropriately captured and handled.

Please review the changes at your earliest convenience. I believe this modification will improve the robustness of our error handling mechanism. This pull requests contains also unit tests for both cases: exception and error.

@BartoszLitwiniuk BartoszLitwiniuk marked this pull request as draft November 16, 2023 21:43
@BartoszLitwiniuk BartoszLitwiniuk marked this pull request as ready for review December 12, 2023 19:01
@BartoszLitwiniuk BartoszLitwiniuk changed the title Remove checking throwable type in uncaughtException handler Remove check throwable type in uncaughtException handler Dec 12, 2023
@BartoszLitwiniuk BartoszLitwiniuk changed the title Remove check throwable type in uncaughtException handler Remove check of throwable type in uncaughtException handler Dec 12, 2023
@BartoszLitwiniuk BartoszLitwiniuk merged commit cc99aab into master Jan 3, 2024
3 checks passed
@BartoszLitwiniuk BartoszLitwiniuk deleted the improve-unhandled-exception-handler branch January 3, 2024 20:50
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.

2 participants