|
TUM CCSM Commons | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.tum.cs.commons.error.CollectingExceptionHandler<X>
public class CollectingExceptionHandler<X extends java.lang.Exception>
An exception handler that collects exceptions for later use.
Constructor Summary | |
---|---|
CollectingExceptionHandler()
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CollectingExceptionHandler()
Method Detail |
---|
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()
|
TUM CCSM Commons | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |