| Package | Description |
|---|---|
| com.annimon.stream |
| Modifier and Type | Method and Description |
|---|---|
Exceptional<T> |
Exceptional.ifException(Consumer<Throwable> consumer)
Invokes consumer function if there were any exception.
|
<E extends Throwable> |
Exceptional.ifExceptionIs(Class<E> throwableClass,
Consumer<E> consumer)
Invokes consumer function if exception class matches
throwableClass. |
static <T> Exceptional<T> |
Exceptional.of(ThrowableSupplier<T,Throwable> supplier)
Returns an
Exceptional with value provided by given ThrowableSupplier function. |
Copyright © 2015. All rights reserved.