Example of angularjs and UI exception handling and reporting