EXTYPE - The exception type to be handledpublic final class CollectingExceptionHandlerMultiple<EXTYPE extends Throwable> extends Object implements IExceptionHandler<EXTYPE>
IExceptionHandler interface, that
stores all exceptions.| Constructor and Description |
|---|
CollectingExceptionHandlerMultiple() |
| 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)
IExceptionHandleronException in interface IExceptionHandler<EXTYPE extends Throwable>aEx - The exception. Never null.public boolean hasException()
@Nonnegative public int getExceptionCount()
@Nonnull @ReturnsMutableCopy public List<EXTYPE> getAllExceptions()
Copyright © 2014 Philip Helger. All rights reserved.