Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
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