docs(errorHandler): add docs

This commit is contained in:
mhartington
2016-11-16 08:33:20 -08:00
parent 89feb689b8
commit d283aa0057

View File

@@ -1,10 +1,10 @@
import { ErrorHandler } from '@angular/core';
/**
* @name IonicErrorHandler
* @description
* The `IonicErrorHandler` intercepts the default `Console` error handling
* and displays runtime errors as an overlay when using Ionic's Dev Build Server.
* We can often add some nice goodies to the dev/debugging process by reporting
* to our dev server and improving the error's readability.
*
*
* ### IonicErrorHandler Example
@@ -44,6 +44,9 @@ export class IonicErrorHandler extends ErrorHandler {
constructor() {
super(false);
}
/**
* @internal
*/
handleError(err: any): void {
super.handleError(err);
try {