EXTYPE - The exception type to be handledpublic class CollectingExceptionListCallback<EXTYPE extends Throwable> extends Object implements IExceptionCallback<EXTYPE>
IExceptionCallback interface, that
stores all exceptions.| Constructor and Description |
|---|
CollectingExceptionListCallback() |
| Modifier and Type | Method and Description |
|---|---|
List<EXTYPE> |
getAllExceptions() |
int |
getExceptionCount() |
boolean |
hasException() |
void |
onException(EXTYPE aEx)
Called when an exception of the specified type occurred.
|
String |
toString() |
public void onException(@Nullable EXTYPE aEx)
IExceptionCallbackonException in interface IExceptionCallback<EXTYPE extends Throwable>aEx - The exception. Never null.public boolean hasException()
@Nonnegative public int getExceptionCount()
@Nonnull @ReturnsMutableCopy public List<EXTYPE> getAllExceptions()
Copyright © 2014–2016 Philip Helger. All rights reserved.