public static class ImmediateSupplier.ImmediateValueNotAvailableException
extends java.lang.RuntimeException
ImmediateSupplier.getImmediately()
, which if
it returns an absent result, that absent will throw this.
This is useful for passing between contexts that support immediate evaluation,
through contexts that do not, to outer contexts which do, as the outer context
will be able to use this exception to return a Maybe.absent()
rather than throwing.
Constructor and Description |
---|
ImmediateValueNotAvailableException() |
ImmediateValueNotAvailableException(java.lang.String message) |
ImmediateValueNotAvailableException(java.lang.String message,
java.lang.Throwable cause) |
Modifier and Type | Method and Description |
---|---|
static <T> Maybe<T> |
newAbsentWithExceptionSupplier() |
static <T> Maybe<T> |
newAbsentWrapping(java.lang.String message,
Maybe<?> inner) |
public ImmediateValueNotAvailableException()
public ImmediateValueNotAvailableException(java.lang.String message)
public ImmediateValueNotAvailableException(java.lang.String message, java.lang.Throwable cause)