Skip to content

Instantly share code, notes, and snippets.

@n3dst4
Created October 30, 2012 09:15
Show Gist options
  • Save n3dst4/3979183 to your computer and use it in GitHub Desktop.
Save n3dst4/3979183 to your computer and use it in GitHub Desktop.
Registering an exception handler
pageModel.registerExceptionHandler("FeedbackNeeded", function (exception, ready) {
doStuff(exception);
doSomethingAsynchronousWithACallback(function(response){
if (response.good) {
exception.handled = true;
}
ready(); // tell the exception broker we're ready to go on
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment