public class DefaultExceptionHandler extends java.lang.Object implements ExceptionHandler
ExceptionHandler
- just re-throws the exception it encounters.Constructor and Description |
---|
DefaultExceptionHandler() |
Modifier and Type | Method and Description |
---|---|
void |
handleException(RepeatContext context,
java.lang.Throwable throwable)
Re-throw the throwable.
|
public void handleException(RepeatContext context, java.lang.Throwable throwable) throws java.lang.Throwable
handleException
in interface ExceptionHandler
context
- the current RepeatContext
. Can be used to store
state (via attributes), for example to count the number of occurrences of
a particular exception type and implement a threshold policy.throwable
- an exception.java.lang.Throwable
- implementations are free to re-throw the exceptionExceptionHandler.handleException(RepeatContext,
Throwable)