public class CollectingExceptionHandler<X extends java.lang.Exception> extends java.lang.Object implements IExceptionHandler<X,NeverThrownRuntimeException>
Constructor and Description |
---|
CollectingExceptionHandler() |
Modifier and Type | Method and Description |
---|---|
void |
clearExceptions()
Clears the list of exceptions.
|
UnmodifiableList<X> |
getExceptions()
Returns the list of exception caught so far.
|
void |
handleException(X exception)
Handle the provided exception.
|
public CollectingExceptionHandler()
public void handleException(X exception) throws NeverThrownRuntimeException
handleException
in interface IExceptionHandler<X extends java.lang.Exception,NeverThrownRuntimeException>
exception
- the exception being handled.NeverThrownRuntimeException
public UnmodifiableList<X> getExceptions()
public void clearExceptions()