-
-
Notifications
You must be signed in to change notification settings - Fork 51
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
Result.map {} can cause a ClassCastException if an exception that isn't of the right type is thrown inside it #59
Comments
This happens in case of What do you think @kittinunf ? |
To be honest, I am reluctant to add this functionality. Do you think you can have a top-level exception that every other error conforms too and use that one instead? |
Hope PR #74 gets merged and release soon as we've been suffering from this crash in production. I think it's more reproducible when dealing with coroutines where sometimes a Example:
|
It has been merged quite some time ago! Please report it back whether it solves the problem or not. |
It would be useful to add a function, let's say for example
mapSafe
that could handle an exception of another type, for example:Haven't tested this. Thoughts ?
The text was updated successfully, but these errors were encountered: