The Author Online Book Forums are Moving

The Author Online Book Forums will soon redirect to Manning's liveBook and liveVideo. All book forum content will migrate to liveBook's discussion forum and all video forum content will migrate to liveVideo. Log in to liveBook or liveVideo with your Manning credentials to join the discussion!

Thank you for your engagement in the AoF over the years! We look forward to offering you a more enhanced forum experience.

LeslieM (25) [Avatar] Offline
...The last change we made is adding a global exception event listener to our JsonStore, which is needed if you wanted something to occur upon any exception that the Store raises.

Jay, can you provide a little more of a hint where this mysterious "arguments" comes from in the exception? Its not passed in as a function parameter, so where is it coming from?

Also, can you provide a simple example of error handling code that is more production oriented, that would capture for example the response code from the server and display that to the user?


function (misc, errtype, action, opts, response, args) {
Ext.MessageBox.alert('Server Response', 'Server response was: ' + response.status + ' for ' + opts.method + ' request to ' + opts.url