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