Class CollectingExceptionCallback<EXTYPE extends Throwable>
java.lang.Object
com.helger.commons.callback.exception.CollectingExceptionCallback<EXTYPE>
- Type Parameters:
EXTYPE- The exception type to be handled
- All Implemented Interfaces:
IExceptionCallback<EXTYPE>,ICallback
@NotThreadSafe
public class CollectingExceptionCallback<EXTYPE extends Throwable>
extends Object
implements IExceptionCallback<EXTYPE>
A specific implementation of the
IExceptionCallback interface, that
stores the last exception.- Author:
- Philip Helger
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanvoidonException(EXTYPE aEx) Called when an exception of the specified type occurred.toString()
-
Constructor Details
-
CollectingExceptionCallback
public CollectingExceptionCallback()
-
-
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() -
getException
-
toString
-