Hi isomorphic,
Consider a scenario , i am fetching a data for a particular list grid , by listGrid.fetchData() ; If an exception occurs in back end, i want to catch that particuar exception in my smartclient screen so that i can forward the user to an error page.
Please provide some pointers to this particular scenario.
Thank you.
If you’re using the SmartClient server, trap the exception normally and set a negative status code via DSResponse.setStatus(). You can then decide what the UI will do with the error in RPCManager.handleError().
Analogously if you are talking to a XML or JSON service, detect the bad response in DataSource.transformResponse() (eg based on httpStatusCode being 500) and set a negative dsResponse.status value, then do whatever you want from RPCManager.handleError().