V - The type of result of the method to call.E - The type of the throwable to replace an occurred exception.public class ExceptionConvertingCallable<V,E extends java.lang.Exception>
extends java.lang.Object
implements java.util.concurrent.Callable<V>
| Modifier and Type | Field and Description |
|---|---|
protected java.util.logging.Logger |
logger
The logger for logging the occurred exception.
|
protected ThrowableCreatingCallable<V,E> |
tcc
The callable providing the actual call as well as the means to replace an occurred exception.
|
| Constructor and Description |
|---|
ExceptionConvertingCallable(ThrowableCreatingCallable<V,E> tcc,
java.util.logging.Logger logger)
Creates a new callable executing a method and logging and replacing an occurred exception by a
different one.
|
| Modifier and Type | Method and Description |
|---|---|
V |
call() |
protected final ThrowableCreatingCallable<V,E extends java.lang.Exception> tcc
protected final java.util.logging.Logger logger
public ExceptionConvertingCallable(ThrowableCreatingCallable<V,E> tcc, java.util.logging.Logger logger)
tcc - The callable providing the actual call as well as the means to replace an occurred
exception.logger - The logger for logging the occurred exception.