Results 1 to 3 of 3

Thread: ExtJs Direct. Exception handling.

  1. #1
    Ext JS Premium Member
    Join Date
    Mar 2008

    Default 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.
    Any hints?
    thanks in advance.

  2. #2
    Sencha User aconran's Avatar
    Join Date
    Mar 2007


    Rather than returning with a type of "rpc", you can return with a type of "error".
    Aaron Conran

  3. #3
    Ext JS Premium Member
    Join Date
    Mar 2008


    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.
    thank you.

Similar Threads

  1. Exception Handling in Ext Direct
    By dancablam in forum Ext.Direct
    Replies: 2
    Last Post: 27 Jun 2011, 10:38 PM
  2. Replies: 0
    Last Post: 8 Apr 2010, 10:13 PM
  3. Ext.Direct - Exception handling question
    By ThorstenSuckow in forum Ext.Direct
    Replies: 2
    Last Post: 18 Sep 2009, 7:31 PM
  4. Direct Remoting Exception Handling Help
    By MoShAn480 in forum Ext.Direct
    Replies: 3
    Last Post: 20 Aug 2009, 11:23 PM
  5. Exception handling.
    By rohanforu in forum Ext GWT: Discussion
    Replies: 0
    Last Post: 19 May 2009, 1:50 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts