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

Question about exception handling #503

Open
chitoiur opened this issue May 20, 2023 · 2 comments
Open

Question about exception handling #503

chitoiur opened this issue May 20, 2023 · 2 comments

Comments

@chitoiur
Copy link

I had a call to Map in my chain, but the callback was throwing an exception. I was expecting for the exception to be caught internally and for the result to be errored out to the exception message, but that didn't happen and it just threw the exception into my code. That's understandable, but my question is what is the recommended way to handle exceptions inside callbacks/lambdas so that the error gets set properly into the result?

@chitoiur
Copy link
Author

Never mind, I found that there is BindTry. I initially did not find it, because it's not in the docs. But I did find it in the source code. Perhaps it should be mentioned in the docs.

@vkhorikov
Copy link
Owner

Yeah, the docs are lacking, that's true.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants