Class CollectingExceptionListCallback<EXTYPE extends Throwable>
java.lang.Object
com.helger.commons.callback.exception.CollectingExceptionListCallback<EXTYPE>
- Type Parameters:
EXTYPE- The exception type to be handled
- All Implemented Interfaces:
IExceptionCallback<EXTYPE>,ICallback
@NotThreadSafe
public class CollectingExceptionListCallback<EXTYPE extends Throwable>
extends Object
implements IExceptionCallback<EXTYPE>
A specific implementation of the
IExceptionCallback interface, that
stores all exceptions.- Author:
- Philip Helger
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintbooleanvoidonException(EXTYPE aEx) Called when an exception of the specified type occurred.toString()
-
Constructor Details
-
CollectingExceptionListCallback
public CollectingExceptionListCallback()
-
-
Method Details
-
onException
Description copied from interface:IExceptionCallbackCalled when an exception of the specified type occurred. You may not re-throw the exception from in here!- Specified by:
onExceptionin interfaceIExceptionCallback<EXTYPE extends Throwable>- Parameters:
aEx- The exception. Nevernull.
-
hasException
public boolean hasException() -
getExceptionCount
-
getAllExceptions
-
toString
-