Package com.smartgwt.client.data.events
Interface HasHandleErrorHandlers
- All Superinterfaces:
HasHandlers
- All Known Implementing Classes:
DataSource,FacadeDataSource,MockDataSource,RestDataSource,WSDataSource,XJSONDataSource
-
Method Summary
Modifier and TypeMethodDescriptionaddHandleErrorHandler(HandleErrorHandler handler) If you define this method on a DataSource, it will be called whenever the server returns a DSResponse with a status other thanSTATUS_SUCCESS.Methods inherited from interface com.google.gwt.event.shared.HasHandlers
fireEvent
-
Method Details
-
addHandleErrorHandler
If you define this method on a DataSource, it will be called whenever the server returns a DSResponse with a status other thanSTATUS_SUCCESS. You can use this hook to do DataSource-specific error handling. Unless you callErrorEvent.cancel(),HandleErrorCallback.handleError()will be called by Smart GWT right after this method completes.- Parameters:
handler- the handleError handler- Returns:
HandlerRegistrationused to remove this handler
-