Last active
October 1, 2015 15:21
-
-
Save brianr/319cd1a3b6d3d4bf2980 to your computer and use it in GitHub Desktop.
rollbar instrumentation for angular js exception handler
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
angular.module('exceptionOverride', []).factory('$exceptionHandler', function() { | |
return function(exception, cause) { | |
Rollbar.error(exception, {cause: cause}); | |
throw exception; | |
}; | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment