Skip to content

Instantly share code, notes, and snippets.

@n3dst4
Created October 30, 2012 09:15
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 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