Package no.digipost.function
Interface ThrowingSupplier<T,X extends Throwable>
-
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface ThrowingSupplier<T,X extends Throwable>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default Supplier<T>asUnchecked()Tget()default Supplier<Optional<T>>ifException(Consumer<Exception> exceptionHandler)default Supplier<T>ifExceptionGet(Function<Exception,T> recoveryFunction)default Supplier<T>ifExceptionThrow(Function<? super Exception,? extends RuntimeException> exceptionMapper)
-
-
-
Method Detail
-
ifExceptionThrow
default Supplier<T> ifExceptionThrow(Function<? super Exception,? extends RuntimeException> exceptionMapper)
-
-