public class ErrorEvent extends AbstractSmartEvent<HandleErrorHandler> implements Cancellable
GwtEvent.Type<H>
jsObj
Constructor and Description |
---|
ErrorEvent(JavaScriptObject jsObj) |
Modifier and Type | Method and Description |
---|---|
void |
cancel()
Call this method to suppress
RPCManager.handleError() |
protected void |
dispatch(HandleErrorHandler handler) |
static <S extends HasHandleErrorHandlers & HasHandlers> |
fire(S source,
JavaScriptObject jsObj)
Fires a open event on all registered handlers in the handler manager.If no
such handlers exist, this method will do nothing.
|
GwtEvent.Type<HandleErrorHandler> |
getAssociatedType() |
DSRequest |
getRequest()
the DSRequest or DSRequest that was sent to the server
|
DSResponse |
getResponse()
the DSResponse or DSResponse object returned from the server
|
static GwtEvent.Type<HandleErrorHandler> |
getType()
Gets the type associated with this event.
|
boolean |
isCancelled() |
assertLive, getSource, isLive, kill, revive
setSource, toDebugString, toString
public ErrorEvent(JavaScriptObject jsObj)
public static <S extends HasHandleErrorHandlers & HasHandlers> void fire(S source, JavaScriptObject jsObj)
S
- The event sourcesource
- the source of the handlersjsObj
- the native eventpublic static GwtEvent.Type<HandleErrorHandler> getType()
protected void dispatch(HandleErrorHandler handler)
dispatch
in class GwtEvent<HandleErrorHandler>
public final GwtEvent.Type<HandleErrorHandler> getAssociatedType()
getAssociatedType
in class GwtEvent<HandleErrorHandler>
public void cancel()
RPCManager.handleError()
cancel
in interface Cancellable
public boolean isCancelled()
isCancelled
in interface Cancellable
public DSResponse getResponse()
public DSRequest getRequest()