public final class BusTransportError extends Object implements TransportError
Constructor and Description |
---|
BusTransportError(TransportHandler source,
com.google.gwt.http.client.Request request,
Throwable throwable,
int statusCode,
RetryInfo retryInfo) |
Modifier and Type | Method and Description |
---|---|
String |
getErrorMessage()
An error message associated with the error, if applicable.
|
Throwable |
getException()
Any exception associated with the error.
|
com.google.gwt.http.client.Request |
getRequest()
The
Request associated with the error. |
RetryInfo |
getRetryInfo()
Provides the retry information for the failed action that led to this error.
|
TransportHandler |
getSource()
The
TransportHandler where this error came from. |
int |
getStatusCode()
Any applicable HTTP status code with the error.
|
boolean |
isHTTP()
Returns true if the error occurred as the result of an HTTP request.
|
boolean |
isStopDefaultErrorHandler() |
boolean |
isWebSocket()
Returns true if the error occurred as a result of a problem with a
WebSockets channel.
|
void |
stopDefaultErrorHandling()
Causes the ClientMessageBus to behave as if this error did not happen.
|
public BusTransportError(TransportHandler source, com.google.gwt.http.client.Request request, Throwable throwable, int statusCode, RetryInfo retryInfo)
public TransportHandler getSource()
TransportError
TransportHandler
where this error came from. Never null.getSource
in interface TransportError
public com.google.gwt.http.client.Request getRequest()
TransportError
Request
associated with the error.getRequest
in interface TransportError
public String getErrorMessage()
TransportError
getErrorMessage
in interface TransportError
public boolean isHTTP()
TransportError
isHTTP
in interface TransportError
public boolean isWebSocket()
TransportError
isWebSocket
in interface TransportError
public int getStatusCode()
TransportError
getStatusCode
in interface TransportError
public Throwable getException()
TransportError
getException
in interface TransportError
public void stopDefaultErrorHandling()
TransportError
bus lifecycle
will occur.
To recover from this indeterminate state, restart the bus by calling
ClientMessageBus.stop(boolean)
followed by
ClientMessageBus.init()
at a later time.
stopDefaultErrorHandling
in interface TransportError
public boolean isStopDefaultErrorHandler()
public RetryInfo getRetryInfo()
TransportError
getRetryInfo
in interface TransportError
Copyright © 2013-2015 JBoss, a division of Red Hat. All Rights Reserved.