Hello,
In SGWT Power 3.0p (and probably other versions),
the following interface exists to handle severe errors from the server in the client:
However, when something really bad happens, like an SQL error on the server in custom DMI, it can be that the response.getData() function will trip, because it actually is a String that is returned rather than the expected 'Record'.
In the case of setWillHandleError(true), in the DSCallback, we have the Object rawData parameter.
The question I have is: Can this parameter be retrieved from response, or added to this interface? I could use this for some diagnostics purposes, like sending an email when something like this happens, allowing me to detect this stuff quicker than keeping an eye on the logs.
Of course, this could be done on the server as well, but it would still be nice if response.getData() wouldn't trip. :-)
In SGWT Power 3.0p (and probably other versions),
the following interface exists to handle severe errors from the server in the client:
Code:
public interface HandleErrorCallback { /** * RPCManager error handler callback. * * @param response the response * @param request the request * * @see RPCManager#setHandleErrorCallback */ void handleError(DSResponse response, DSRequest request); }
In the case of setWillHandleError(true), in the DSCallback, we have the Object rawData parameter.
The question I have is: Can this parameter be retrieved from response, or added to this interface? I could use this for some diagnostics purposes, like sending an email when something like this happens, allowing me to detect this stuff quicker than keeping an eye on the logs.
Of course, this could be done on the server as well, but it would still be nice if response.getData() wouldn't trip. :-)
Comment