public interface ThrowingSupplier<T,E extends Exception>
| Modifier and Type | Method and Description |
|---|---|
default ThrowingSupplier<T,E> |
andFinally(Runnable runnable) |
default Supplier<T> |
fallbackTo(Function<Exception,T> exceptionToFallback) |
T |
get() |
default <N extends Exception> |
mapException(Function<Exception,N> exceptionMapper) |
default Supplier<T> |
mapToUncheckedException(Function<Exception,RuntimeException> exceptionMapper) |
default Supplier<Optional<T>> |
onCheckedException(Consumer<Exception> onException) |
default <N extends Exception> ThrowingSupplier<T,N> mapException(Function<Exception,N> exceptionMapper)
default Supplier<T> mapToUncheckedException(Function<Exception,RuntimeException> exceptionMapper)
default ThrowingSupplier<T,E> andFinally(Runnable runnable)
Copyright © 2023. All rights reserved.