$exceptionHandler
ngMock
Mock implementation of ng.$exceptionHandler that rethrows or logs errors passed into it. See $exceptionHandlerProvider for configuration information.
ng.$exceptionHandler