Class Either.Failure
java.lang.Object
java.lang.Throwable
java.lang.Exception
io.vavr.control.Either.Failure
- All Implemented Interfaces:
Serializable
An exception wrapper used to propagate values through exception handling mechanisms.
This class wraps a value in an exception to enable using exception-based control flow when working with Either. It is not possible to use a generic type parameter for the exception type due to Java type system limitations.
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
value
-
-
Constructor Details
-
Failure
Constructs a newFailurewrapping the given value.- Parameters:
value- the value to wrap
-
-
Method Details
-
getValue
-