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 theIExceptionCallbackinterface, that stores all exceptions.- Author:
- Philip Helger
-
-
Constructor Summary
Constructors Constructor Description CollectingExceptionListCallback()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ICommonsList<EXTYPE>getAllExceptions()intgetExceptionCount()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()
-
getExceptionCount
@Nonnegative public int getExceptionCount()
-
getAllExceptions
@Nonnull @ReturnsMutableCopy public ICommonsList<EXTYPE> getAllExceptions()
-
-