| Modifier and Type | Method and Description |
|---|---|
default <X extends Throwable> |
Throwing.Runnable.onFailure(Class<? extends X> type,
Consumer<X> action)
Execute the given action before throwing the exception.
|
default Throwing.Runnable |
Throwing.Runnable.onFailure(Consumer<Throwable> action)
Execute the given action before throwing the exception.
|
static Throwing.Runnable |
Throwing.throwingRunnable(Throwing.Runnable action)
Factory method for
Runnable. |
default <X extends Throwable> |
Throwing.Runnable.unwrap(Class<? extends X> type)
Unwrap an exception and rethrow.
|
default Throwing.Runnable |
Throwing.Runnable.wrap(Function<Throwable,Exception> wrapper)
Wrap an exception as new exception provided by the given wrap function.
|
| Modifier and Type | Method and Description |
|---|---|
Try |
Try.onComplete(Throwing.Runnable action)
Always run the given action, works like a finally clause.
|
Try.Value<V> |
Try.Value.onComplete(Throwing.Runnable action)
Always run the given action, works like a finally clause.
|
static Try |
Try.run(Throwing.Runnable runnable)
Creates a side effect try from given runnable.
|
static Throwing.Runnable |
Throwing.throwingRunnable(Throwing.Runnable action)
Factory method for
Runnable. |
Copyright © 2017. All rights reserved.