1. #1
    Sencha User
    Join Date
    Jul 2013
    Posts
    8
    Answers
    1
    Vote Rating
    0
    johija is on a distinguished road

      0  

    Default Unanswered: global ext-js error handling

    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
    31
    Vote Rating
    85
    existdissolve is just really nice existdissolve is just really nice existdissolve is just really nice existdissolve is just really nice existdissolve is just really nice

      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:

Thread Participants: 1

Tags for this Thread