Skip to content

Add an async variant to Catching.catch #34

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

Merged
merged 2 commits into from
May 3, 2025
Merged

Conversation

jubishop
Copy link
Contributor

@jubishop jubishop commented May 1, 2025

Fixes #32

@jubishop
Copy link
Contributor Author

jubishop commented May 1, 2025

I've also changed the logic a bit such that if the error caught by the catch is already of the target type, it just throws it directly rather than wrapping it in another error inside the caught case.

@Jeehut Jeehut changed the title add an async variant to Catching.catch Add an async variant to Catching.catch May 3, 2025
@Jeehut
Copy link
Member

Jeehut commented May 3, 2025

@jubishop Thank you very much, those are 2 good catches I missed initially. Code looks good, too. Great job! 🎉

Merging as is. 🚀

@Jeehut Jeehut merged commit 9987568 into FlineDev:main May 3, 2025
1 check passed
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.

[Feat] catchAsync or asyncCatch
2 participants