| Package | Description |
|---|---|
| org.sellcom.core.util.function |
| Modifier and Type | Method and Description |
|---|---|
default ThrowingSupplier<T> |
ThrowingSupplier.orThrow(Class<? extends RuntimeException> exceptionClass)
Returns a
ThrowingSupplier throwing an exception of the given type if this supplier throws an exception. |
default ThrowingSupplier<T> |
ThrowingSupplier.orThrow(Class<? extends RuntimeException> exceptionClass,
String message)
Returns a
ThrowingSupplier throwing an exception of the given type if this supplier throws an exception. |
default ThrowingSupplier<T> |
ThrowingSupplier.orTryWith(ThrowingSupplier<? extends T> other)
Returns a
ThrowingSupplier returning from the given supplier if this supplier throws an exception. |
default ThrowingSupplier<T> |
ThrowingSupplier.orTryWith(ThrowingSupplier<? extends T> other,
Consumer<Exception> exceptionConsumer)
Returns a
ThrowingSupplier returning from the given supplier if this supplier throws an exception. |
| Modifier and Type | Method and Description |
|---|---|
default ThrowingSupplier<T> |
ThrowingSupplier.orTryWith(ThrowingSupplier<? extends T> other)
Returns a
ThrowingSupplier returning from the given supplier if this supplier throws an exception. |
default ThrowingSupplier<T> |
ThrowingSupplier.orTryWith(ThrowingSupplier<? extends T> other,
Consumer<Exception> exceptionConsumer)
Returns a
ThrowingSupplier returning from the given supplier if this supplier throws an exception. |