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 occurred during an XHR request to the server.- Since:
- 1.0
- Author:
- Vaadin Ltd
-
-
Constructor Summary
Constructors Constructor Description XhrConnectionError(com.google.gwt.xhr.client.XMLHttpRequest xhr, elemental.json.JsonObject payload, Exception exception)Creates a XhrConnectionError for the given request using the given payload.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ExceptiongetException()Returns the exception which caused the problem, if available.elemental.json.JsonObjectgetPayload()Returns the payload which was sent to the server.com.google.gwt.xhr.client.XMLHttpRequestgetXhr()ReturnsXMLHttpRequestwhich failed to reach the server.
-
-
-
Constructor Detail
-
XhrConnectionError
public XhrConnectionError(com.google.gwt.xhr.client.XMLHttpRequest xhr, elemental.json.JsonObject payload, Exception exception)Creates a XhrConnectionError for the given request using the given payload.- Parameters:
xhr- the request which caused the errorpayload- the payload which was on its way to the serverexception- the exception which caused the error or null if the error was not caused by an exception
-
-
Method Detail
-
getException
public Exception getException()
Returns the exception which caused the problem, if available.- Returns:
- the exception which caused the problem, or null if not available
-
getXhr
public com.google.gwt.xhr.client.XMLHttpRequest getXhr()
ReturnsXMLHttpRequestwhich failed to reach the server.- Returns:
- the request which failed
-
getPayload
public elemental.json.JsonObject getPayload()
Returns the payload which was sent to the server.- Returns:
- the payload which was sent, never null
-
-