public static interface Retry.Context
| Modifier and Type | Method and Description |
|---|---|
void |
onError(java.lang.Exception exception)
Handles a checked exception
|
void |
onRuntimeError(java.lang.RuntimeException runtimeException)
Handles a runtime exception
|
void |
onSuccess()
Records a successful call.
|
void onSuccess()
void onError(java.lang.Exception exception)
throws java.lang.Throwable
exception - the exception to handlejava.lang.Throwable - the exceptionvoid onRuntimeError(java.lang.RuntimeException runtimeException)
runtimeException - the exception to handle