Package com.vaadin.client.communication
Class XhrConnectionError
- java.lang.Object
-
- com.vaadin.client.communication.XhrConnectionError
-
public class XhrConnectionError extends Object
XhrConnectionError provides detail about an error which occured during an XHR request to the server- Since:
- 7.6
- Author:
- Vaadin Ltd
-
-
Constructor Summary
Constructors Constructor Description XhrConnectionError(com.google.gwt.http.client.Request request, JsonObject payload, com.google.gwt.http.client.Response response)
Constructs an event from the given request, response and payloadXhrConnectionError(com.google.gwt.http.client.Request request, JsonObject payload, Throwable exception)
Constructs an event from the given request, payload and exception
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Throwable
getException()
Returns the exception which caused the problem, if availableJsonObject
getPayload()
Returns the payload which was sent to the servercom.google.gwt.http.client.Request
getRequest()
Returns the request for which the problem occurredcom.google.gwt.http.client.Response
getResponse()
Returns the received response, if available
-
-
-
Constructor Detail
-
XhrConnectionError
public XhrConnectionError(com.google.gwt.http.client.Request request, JsonObject payload, Throwable exception)
Constructs an event from the given request, payload and exception- Parameters:
request
- the request which failedpayload
- the payload which was going to the serverexception
- the exception describing the problem
-
XhrConnectionError
public XhrConnectionError(com.google.gwt.http.client.Request request, JsonObject payload, com.google.gwt.http.client.Response response)
Constructs an event from the given request, response and payload- Parameters:
request
- the request which failedpayload
- the payload which was going to the serverresponse
- the response for the request
-
-
Method Detail
-
getException
public Throwable getException()
Returns the exception which caused the problem, if available- Returns:
- the exception which caused the problem, or null if not available
-
getRequest
public com.google.gwt.http.client.Request getRequest()
Returns the request for which the problem occurred- Returns:
- the request where the problem occurred
-
getResponse
public com.google.gwt.http.client.Response getResponse()
Returns the received response, if available- Returns:
- the received response, or null if not available
-
getPayload
public JsonObject getPayload()
Returns the payload which was sent to the server- Returns:
- the payload which was sent, never null
-
-