T
- The class of the result object returned in case of success.public interface Result<T>
Modifier and Type | Method and Description |
---|---|
void |
onFailure(java.lang.Throwable caught)
Method called back by the associated object when a failure is detected.
|
void |
onSuccess(T result)
Method called back by the associated object in case of success.
|
void onFailure(java.lang.Throwable caught)
caught
- The exception or error caught.void onSuccess(T result)
result
- The result object.Copyright © 2005-2024 Restlet.