Package io.vavr.control
Class Either.Failure
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- io.vavr.control.Either.Failure
-
- All Implemented Interfaces:
java.io.Serializable
public static class Either.Failure extends java.lang.ExceptionAn 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:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private static longserialVersionUIDprivate java.lang.Objectvalue
-
Constructor Summary
Constructors Constructor Description Failure(java.lang.Object value)Constructs a newFailurewrapping the given value.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.ObjectgetValue()Returns the wrapped value.
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
value
private final java.lang.Object value
-
-