Skip to content

Instantly share code, notes, and snippets.

@brianr
Last active October 1, 2015 15:21
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save brianr/319cd1a3b6d3d4bf2980 to your computer and use it in GitHub Desktop.
Save brianr/319cd1a3b6d3d4bf2980 to your computer and use it in GitHub Desktop.
rollbar instrumentation for angular js exception handler
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