EXTYPE - The exception type to be handledpublic class CollectingExceptionCallback<EXTYPE extends Throwable> extends Object implements IExceptionCallback<EXTYPE>
IExceptionCallback interface, that
stores the last exception.| Constructor and Description |
|---|
CollectingExceptionCallback() |
| 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)
IExceptionCallbackonException in interface IExceptionCallback<EXTYPE extends Throwable>aEx - The exception. Never null.public boolean hasException()
Copyright © 2014–2017 Philip Helger. All rights reserved.