Results 1 to 2 of 2

Thread: global ext-js error handling

  1. #1
    Sencha User
    Join Date
    Jul 2013
    Posts
    8
    Answers
    1
    Vote Rating
    0
      0  

    Default Unanswered: global ext-js error handling

    Is there a way to handle all JavaScript errors / any Exceptions in ExtJS application globally and route it to a function that alerts the user on a server error?

    window:onerror() doesn't seem to handle all the JavaScript errors, hence looking for some kind of catch in code, and wrap it to a more generic exception so that would be caught?

  2. #2
    Sencha User existdissolve's Avatar
    Join Date
    Jan 2010
    Location
    Kansas
    Posts
    522
    Answers
    32
    Vote Rating
    88
      1  

    Default

    Quote Originally Posted by johija View Post
    Is there a way to handle all JavaScript errors / any Exceptions in ExtJS application globally and route it to a function that alerts the user on a server error?

    window:onerror() doesn't seem to handle all the JavaScript errors, hence looking for some kind of catch in code, and wrap it to a more generic exception so that would be caught?
    You can trap all ajax errors by setting up a listener on Ext.Ajax requestexception event:

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
  •