com.smartgwt.client.data.events
Interface HasHandleErrorHandlers

All Superinterfaces:
com.google.gwt.event.shared.HasHandlers
All Known Implementing Classes:
DataSource, RestDataSource, WSDataSource, XJSONDataSource

public interface HasHandleErrorHandlers
extends com.google.gwt.event.shared.HasHandlers


Method Summary
 com.google.gwt.event.shared.HandlerRegistration addHandleErrorHandler(HandleErrorHandler handler)
          If you define this method on a DataSource, it will be called whenever the server returns a DSResponse with a status other than STATUS_SUCCESS.
 
Methods inherited from interface com.google.gwt.event.shared.HasHandlers
fireEvent
 

Method Detail

addHandleErrorHandler

com.google.gwt.event.shared.HandlerRegistration addHandleErrorHandler(HandleErrorHandler handler)
If you define this method on a DataSource, it will be called whenever the server returns a DSResponse with a status other than STATUS_SUCCESS. You can use this hook to do DataSource-specific error handling. Unless you return false from this method, RPCManager.handleError will be called by Smart GWT right after this method completes.

Parameters:
handler - the handleError handler
Returns:
HandlerRegistration used to remove this handler