AngularJS exception handler decorator