angular.mock.service.$exceptionHandler

Description

Mock implementation of angular.service.$exceptionHandler that rethrows any error passed into $exceptionHandler. If any errors are are passed into the handler in tests, it typically means that there is a bug in the application or test, so this mock will make these tests fail.

See angular.mock for more info on angular mocks.