PDA

View Full Version : How to get error details on proxy error?



rioka
17 Jan 2012, 8:10 AM
Hi
I'd like to display error information when there is an error within proxy operations, ie loading data.
I've written code for proxy exception event

...
listeners: {
exception: function(proxy, response, operation) {
// show error message to users
}
}
...


This way I can actually display error messages, except for error connecting to the remote server; for example, if the remote server is down, I do have exceptions raised, but I cannot get any further information about the error. No one of the arguments for exception handler (proxy, response and operation) contains a code or description for the error in this case, so I have to way to know where the problem is.

Any suggestions?

mitchellsimoens
17 Jan 2012, 9:00 AM
The response should have the responseText in it.

rioka
18 Jan 2012, 1:25 AM
The response should have the responseText in it.

I've checked it: response.responseText is empty :(