public static class Errors.Rethrowing extends Errors
Errors.Handling, Errors.Plugins, Errors.Rethrowing
Modifier | Constructor and Description |
---|---|
protected |
Rethrowing(java.util.function.Function<java.lang.Throwable,java.lang.RuntimeException> transform) |
Modifier and Type | Method and Description |
---|---|
<T> T |
get(Throwing.Supplier<T> supplier)
Attempts to call the given supplier, throws some kind of RuntimeException on failure.
|
<T,R> java.util.function.Function<T,R> |
wrap(Throwing.Function<T,R> function)
Attempts to call the given function, throws some kind of RuntimeException on failure.
|
<T> java.util.function.Predicate<T> |
wrap(Throwing.Predicate<T> predicate)
Attempts to call the given function, throws some kind of RuntimeException on failure.
|
<T> java.util.function.Supplier<T> |
wrap(Throwing.Supplier<T> supplier)
Attempts to call the given supplier, throws some kind of RuntimeException on failure.
|
protected Rethrowing(java.util.function.Function<java.lang.Throwable,java.lang.RuntimeException> transform)
public <T> T get(Throwing.Supplier<T> supplier)
public <T> java.util.function.Supplier<T> wrap(Throwing.Supplier<T> supplier)
public <T,R> java.util.function.Function<T,R> wrap(Throwing.Function<T,R> function)
public <T> java.util.function.Predicate<T> wrap(Throwing.Predicate<T> predicate)