Skip to content

Rescue more exceptions in error handlers #628

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

KaanOzkan
Copy link
Contributor

We were only rescuing StandardError's but we can also rescue some of the Exception class descendants

@KaanOzkan KaanOzkan marked this pull request as ready for review June 18, 2025 20:05
@KaanOzkan KaanOzkan requested a review from a team as a code owner June 18, 2025 20:05
Copy link
Member

@vinistock vinistock left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we need to specify each branch separately? Could we just group them all in the same rescue?

@KaanOzkan
Copy link
Contributor Author

Do we need to specify each branch separately? Could we just group them all in the same rescue?

We could, I opted for consistency with other rescue's. I'll change it.

@KaanOzkan KaanOzkan force-pushed the ko/rescue-more-exceptions branch from 2c96180 to 7635096 Compare June 19, 2025 15:23
@KaanOzkan KaanOzkan requested a review from vinistock June 19, 2025 15:50
We were only rescuing StandardError's but we can also rescue some of the
Exception class descendants
@KaanOzkan KaanOzkan force-pushed the ko/rescue-more-exceptions branch from 7635096 to 7aca10f Compare June 19, 2025 15:51
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