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 occurred 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, elemental.json.JsonObject payload, com.google.gwt.http.client.Response response)
Constructs an event from the given request, response and payload.
XhrConnectionError(com.google.gwt.http.client.Request request, elemental.json.JsonObject payload, Throwable exception)
Constructs an event from the given request, payload and exception.
-
Method Summary
All Methods Modifier and Type Method Description Throwable
getException()
Returns the exception which caused the problem, if available.
elemental.json.JsonObject
getPayload()
Returns the payload which was sent to the server.
com.google.gwt.http.client.Request
getRequest()
Returns the request for which the problem occurred.
com.google.gwt.http.client.Response
getResponse()
Returns the received response, if available.
-
-
-
Constructor Detail
-
XhrConnectionError
public XhrConnectionError(com.google.gwt.http.client.Request request, elemental.json.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, elemental.json.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 elemental.json.JsonObject getPayload()
Returns the payload which was sent to the server.
Returns:
the payload which was sent, never null
-
-