| Modifier and Type | Method and Description |
|---|---|
default <TV1 extends V1,TV2 extends V2,TV3 extends V3,TV4 extends V4,X extends Throwable> |
Throwing.Consumer4.onFailure(Class<? extends X> type,
Consumer<X> action)
Execute the given action before throwing the exception.
|
default <TV1 extends V1,TV2 extends V2,TV3 extends V3,TV4 extends V4> |
Throwing.Consumer4.onFailure(Consumer<Throwable> action)
Execute the given action before throwing the exception.
|
static <V1,V2,V3,V4> |
Throwing.throwingConsumer(Throwing.Consumer4<V1,V2,V3,V4> action) |
default <TV1 extends V1,TV2 extends V2,TV3 extends V3,TV4 extends V4,X extends Throwable> |
Throwing.Consumer4.unwrap(Class<X> type)
Unwrap an exception and rethrow.
|
default <TV1 extends V1,TV2 extends V2,TV3 extends V3,TV4 extends V4> |
Throwing.Consumer4.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.ResourceHandler4.run(Throwing.Consumer4<R1,R2,R3,R4> fn) |
static <V1,V2,V3,V4> |
Throwing.throwingConsumer(Throwing.Consumer4<V1,V2,V3,V4> action) |
Copyright © 2017. All rights reserved.