
public abstract class ErrorHandlerAsyncCallback<R> extends Object implements RestCallback<R>
| Constructor and Description |
|---|
ErrorHandlerAsyncCallback(HasHandlers hasHandlers) |
| Modifier and Type | Method and Description |
|---|---|
void |
onFailure(Throwable caught) |
void |
setResponse(Response response)
The
Response received from the server. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitonSuccesspublic ErrorHandlerAsyncCallback(HasHandlers hasHandlers)
public void onFailure(Throwable caught)
onFailure in interface AsyncCallback<R>public void setResponse(Response response)
RestCallbackResponse received from the server. If the request did not reach the server, this method will not be
called. This method is called before AsyncCallback.onSuccess(Object) and AsyncCallback.onFailure(Throwable).setResponse in interface RestCallback<R>response - The Response received from the server.Copyright © 2010-2014 ArcBees. All Rights Reserved.