Last active
November 6, 2016 12:45
-
-
Save rattanchauhan/d24ca482ab58d8f02b03753148c0bd8f to your computer and use it in GitHub Desktop.
Adding global exception handler through Sencha Architect.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Ext.Ajax.on({ | |
requestexception: function(dataconn, response, options) { | |
console.dir(dataconn); | |
console.dir(response); | |
console.dir(response.status); | |
if (response.status === 401) { | |
me.redirectTo('login'); | |
} | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment