@FunctionalInterface
public interface ExceptionSupplier<T,E extends java.lang.Exception>
Modifier and Type | Method and Description |
---|---|
default ExceptionRunnable<E> |
andThen(ExceptionConsumer<? super T,? extends E> after) |
default <R> ExceptionSupplier<R,E> |
andThen(ExceptionFunction<? super T,? extends R,? extends E> after) |
T |
get()
Gets a result.
|
T get() throws E extends java.lang.Exception
E
- if an exception occursE extends java.lang.Exception
default ExceptionRunnable<E> andThen(ExceptionConsumer<? super T,? extends E> after)
default <R> ExceptionSupplier<R,E> andThen(ExceptionFunction<? super T,? extends R,? extends E> after)
Copyright © 2015 JBoss, a division of Red Hat, Inc.