com.vaadin.client.communication
Class XhrConnectionError

java.lang.Object
  extended by com.vaadin.client.communication.XhrConnectionError

public class XhrConnectionError
extends java.lang.Object

XhrConnectionError provides detail about an error which occured during an XHR request to the server

Since:
7.6
Author:
Vaadin Ltd

Constructor Summary
XhrConnectionError(Request request, elemental.json.JsonObject payload, Response response)
          Constructs an event from the given request, response and payload
XhrConnectionError(Request request, elemental.json.JsonObject payload, java.lang.Throwable exception)
          Constructs an event from the given request, payload and exception
 
Method Summary
 java.lang.Throwable getException()
          Returns the exception which caused the problem, if available
 elemental.json.JsonObject getPayload()
          Returns the payload which was sent to the server
 Request getRequest()
          Returns the request for which the problem occurred
 Response getResponse()
          Returns the received response, if available
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XhrConnectionError

public XhrConnectionError(Request request,
                          elemental.json.JsonObject payload,
                          java.lang.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(Request request,
                          elemental.json.JsonObject payload,
                          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 java.lang.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 Request getRequest()
Returns the request for which the problem occurred

Returns:
the request where the problem occurred

getResponse

public 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


Copyright © 2000-2014 Vaadin Ltd. All Rights Reserved.