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