| Modifier and Type | Method and Description |
|---|---|
default <TV1 extends V1,TV2 extends V2,X extends Throwable> |
Throwing.Consumer2.onFailure(Class<? extends X> type,
Consumer<X> action)
Execute the given action before throwing the exception.
|
default <TV1 extends V1,TV2 extends V2> |
Throwing.Consumer2.onFailure(Consumer<Throwable> action)
Execute the given action before throwing the exception.
|
static <V1,V2> Throwing.Consumer2<V1,V2> |
Throwing.throwingConsumer(Throwing.Consumer2<V1,V2> action) |
default <TV1 extends V1,TV2 extends V2,X extends Throwable> |
Throwing.Consumer2.unwrap(Class<X> type)
Unwrap an exception and rethrow.
|
default <TV1 extends V1,TV2 extends V2> |
Throwing.Consumer2.wrap(Function<Throwable,Exception> wrapper)
Wrap an exception as new exception provided by the given wrap function.
|
| Modifier and Type | Method and Description |
|---|---|
Try.Value<V> |
Try.Value.onComplete(Throwing.Consumer2<V,Throwable> action)
Always run the given action, works like a finally clause.
|
Try |
Try.ResourceHandler2.run(Throwing.Consumer2<R1,R2> fn) |
static <V1,V2> Throwing.Consumer2<V1,V2> |
Throwing.throwingConsumer(Throwing.Consumer2<V1,V2> action) |
Copyright © 2017. All rights reserved.