mirror of
https://github.com/Hopiu/angular.js.git
synced 2026-05-20 04:11:51 +00:00
fixing $exceptionHandler docs
This commit is contained in:
parent
ce7ab3d1ee
commit
2389c71238
1 changed files with 4 additions and 6 deletions
|
|
@ -377,14 +377,12 @@ angularServiceInject("$log", $logFactory = function($window){
|
||||||
* @requires $log
|
* @requires $log
|
||||||
*
|
*
|
||||||
* @description
|
* @description
|
||||||
* Any uncaught exception in <angular/> is delegated to this service.
|
* Any uncaught exception in angular expressions is delegated to this service.
|
||||||
* The default implementation simply delegates to $log.error which logs it into
|
* The default implementation simply delegates to `$log.error` which logs it into
|
||||||
* the browser console.
|
* the browser console.
|
||||||
*
|
*
|
||||||
* When unit testing it is useful to have uncaught exceptions propagate
|
* In unit tests, if `angular-mocks.js` is loaded, this service is overriden by
|
||||||
* to the test so the test will fail rather than silently log the exception
|
* {@link angular.mock.service.$exceptionHandler mock $exceptionHandler}
|
||||||
* to the browser console. For this purpose you can override this service with
|
|
||||||
* a simple rethrow.
|
|
||||||
*
|
*
|
||||||
* @example
|
* @example
|
||||||
*/
|
*/
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue