EXTYPE - The exception type to be handledpublic final class CollectingExceptionHandler<EXTYPE extends Throwable> extends Object implements IExceptionHandler<EXTYPE>
IExceptionHandler interface, that
stores the last exception.| Constructor and Description |
|---|
CollectingExceptionHandler() |
| Modifier and Type | Method and Description |
|---|---|
EXTYPE |
getException() |
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()
Copyright © 2014 Philip Helger. All rights reserved.