Class 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 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 failed
        payload - the payload which was going to the server
        exception - 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 failed
        payload - the payload which was going to the server
        response - 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