com.vaadin.client.communication.

Class 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.

    • 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 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,
                                  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 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 elemental.json.JsonObject getPayload()

        Returns the payload which was sent to the server.

        Returns:

        the payload which was sent, never null