Modifier and Type | Method and Description |
---|---|
static <T,R,E extends Throwable> |
FunctionWithThrowable.asFunctionWithThrowable(Function<T,R> function)
Utility method to convert FunctionWithThrowable
|
static <T,R,E extends Throwable> |
FunctionWithThrowable.castFunctionWithThrowable(FunctionWithThrowable<T,R,E> functionwiththrowable)
Utility method to mark lambdas of type FunctionWithThrowable
|
default FunctionWithThrowable<T,R,E> |
FunctionWithThrowable.onException(BiConsumer<Throwable,Object[]> consumer) |
default FunctionWithThrowable<T,R,E> |
FunctionWithThrowable.onException(Consumer<Throwable> consumer) |
default FunctionWithThrowable<T,R,E> |
FunctionWithThrowable.withLogging()
Will log WARNING level exceptions on logger if they occur within the interface
|
default FunctionWithThrowable<T,R,E> |
FunctionWithThrowable.withLogging(org.slf4j.Logger logger)
Will log WARNING level exceptions on logger if they occur within the interface
|
default FunctionWithThrowable<T,R,E> |
FunctionWithThrowable.withLogging(org.slf4j.Logger logger,
String message) |
Modifier and Type | Method and Description |
---|---|
static <T,R,E extends Throwable> |
FunctionWithThrowable.aFunctionThatUnsafelyThrowsUnchecked(FunctionWithThrowable<T,R,E> functionwiththrowable)
Utility method to unwrap lambdas of type Function and withUncheckedThrowable any Exception
|
static <T,R,E extends Throwable> |
FunctionWithThrowable.castFunctionWithThrowable(FunctionWithThrowable<T,R,E> functionwiththrowable)
Utility method to mark lambdas of type FunctionWithThrowable
|
Copyright © 2017. All rights reserved.