We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Support general and specific error handling within a lazy or reactive Eval chain
Eval<T> recover(Function<Throwable,? extends T> value); Eval<T> recover(Class<C> type, Function<? super C,? extends T> value)
E.g. with general error handling
Eval.now(100) .map(i->{throw new RuntimeException();}) .recover(i->120) .get() //120
E.g. with specific error handling
Eval.now(100) .map(i->{throw ExceptionSoftener.softenException(IOException())}) .recover(IOException.class,i->120) .get() //120
The text was updated successfully, but these errors were encountered:
Part of #986
Sorry, something went wrong.
Released in 10.1.1
No branches or pull requests
Support general and specific error handling within a lazy or reactive Eval chain
E.g. with general error handling
E.g. with specific error handling
The text was updated successfully, but these errors were encountered: