|
Errai 3.0.1-SNAPSHOT | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.errai.bus.client.framework.transports.BusTransportError
public final class BusTransportError
Constructor Summary | |
---|---|
BusTransportError(TransportHandler source,
com.google.gwt.http.client.Request request,
Throwable throwable,
int statusCode,
RetryInfo retryInfo)
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BusTransportError(TransportHandler source, com.google.gwt.http.client.Request request, Throwable throwable, int statusCode, RetryInfo retryInfo)
Method Detail |
---|
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
|
Errai 3.0.1-SNAPSHOT | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |