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 theIExceptionCallbackinterface, that stores the last exception.- Author:
- Philip Helger
-
-
Constructor Summary
Constructors Constructor Description CollectingExceptionCallback()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description EXTYPEgetException()booleanhasException()voidonException(EXTYPE aEx)Called when an exception of the specified type occurred.StringtoString()
-
-
-
Method Detail
-
onException
public void onException(@Nullable EXTYPE aEx)
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()
-
-