Skip to content

Instantly share code, notes, and snippets.

@rattanchauhan
Last active November 6, 2016 12:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rattanchauhan/d24ca482ab58d8f02b03753148c0bd8f to your computer and use it in GitHub Desktop.
Save rattanchauhan/d24ca482ab58d8f02b03753148c0bd8f to your computer and use it in GitHub Desktop.
Adding global exception handler through Sencha Architect.
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