29 Nov 2010 9:22 AM #1
ExtJs Direct. Exception handling.
How can I detect exception message that is raised in "DirectMethod"? Instead of real message I have hardcoded message: "Unable to connect to the server." appended somewhere in extjs sources. Sound like I need to parse xhr.responseText, which is really unusable. Probably, I miss something. I hope there are other way elicit exception message.
thanks in advance.
29 Nov 2010 10:01 AM #2
Rather than returning with a type of "rpc", you can return with a type of "error".Aaron Conran
29 Nov 2010 3:34 PM #3
So it means I have to deal with it on my own, right? there is no special technics.
Then I would rather use http headers to convey exception details to client.
By dancablam in forum Ext.DirectReplies: 2Last Post: 27 Jun 2011, 10:38 PM
By firstname.lastname@example.org in forum Ext 3.x: Help & DiscussionReplies: 0Last Post: 8 Apr 2010, 10:13 PM
By ThorstenSuckow in forum Ext.DirectReplies: 2Last Post: 18 Sep 2009, 7:31 PM
By MoShAn480 in forum Ext.DirectReplies: 3Last Post: 20 Aug 2009, 11:23 PM
By rohanforu in forum Ext GWT: DiscussionReplies: 0Last Post: 19 May 2009, 1:50 PM