1. #1
    Ext JS Premium Member
    Join Date
    Mar 2008
    Posts
    31
    Vote Rating
    0
    Andrew.Golik is on a distinguished road

      0  

    Default ExtJs Direct. Exception handling.

    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 - Architect Dev Team aconran's Avatar
    Join Date
    Mar 2007
    Posts
    8,191
    Vote Rating
    63
    aconran is just really nice aconran is just really nice aconran is just really nice aconran is just really nice aconran is just really nice

      0  

    Default


    Rather than returning with a type of "rpc", you can return with a type of "error".
    Aaron Conran
    @aconran
    Sencha Architect Development Team

  3. #3
    Ext JS Premium Member
    Join Date
    Mar 2008
    Posts
    31
    Vote Rating
    0
    Andrew.Golik is on a distinguished road

      0  

    Default


    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. How to post in EXTJS Forums ,To know abt Logging and Exception handling is available
    By vinodpadmanaban@gmail.com in forum Ext 3.x: Help & Discussion
    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