angular.service.$exceptionHandler

Work In Progress This page is currently being revised. It might be incomplete or contain inaccuracies.

Description

Any uncaught exception in <angular/> is delegated to this service. The default implementation simply delegates to $log.error which logs it into the browser console.

When unit testing it is useful to have uncaught exceptions propagate to the test so the test will fail rather than silently log the exception to the browser console. For this purpose you can override this service with a simple rethrow.

Dependencies

Methods

Properties