Introduce Result.failure(Exception ex) method to propagate exception as failure result to caller #5439
Replies: 3 comments 1 reply
-
|
the idea is valuable, I'd like to hear more about what will be the future Plus I'd like to hear why:
that doesn't sound like a good idea to do so but maybe I'm missing the point. |
Beta Was this translation helpful? Give feedback.
-
Throwable is just a root class for exceptions in Java, so Throwable becomes more generic. |
Beta Was this translation helpful? Give feedback.
-
|
Would you mind create an issue for this? Given that it's involving core classes it will require a decision record prior to implementation |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Current State
A method throws some exception which is represented as a failure result via
Proposed Way
Motivation
Proposed Methods
Throwablecan be used in place ofExceptionBeta Was this translation helpful? Give feedback.
All reactions