File tree Expand file tree Collapse file tree 2 files changed +15
-0
lines changed Expand file tree Collapse file tree 2 files changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ export * from './gestures/gesture-controller';
11
11
export * from './util/click-block' ;
12
12
export * from './util/events' ;
13
13
export * from './util/haptic' ;
14
+ export * from './util/ionic-error-handler' ;
14
15
export * from './util/keyboard' ;
15
16
export * from './util/form' ;
16
17
export { reorderArray } from './util/util' ;
Original file line number Diff line number Diff line change
1
+ /**
2
+ * This class is an internal error handler for Ionic. We can often add
3
+ * some nice goodies to the dev/debugging process by reporting to our
4
+ * dev server. To use this class, call `IonicErrorHandler.handleError(err)` from
5
+ * inside a custom `ErrorHandler` as described here: https://angular.io/docs/ts/latest/api/core/index/ErrorHandler-class.html
6
+ */
7
+ export class IonicErrorHandler {
8
+ static handleError ( err : any ) : void {
9
+ let server = window [ 'IonicDevServer' ] ;
10
+ if ( server ) {
11
+ server . handleError ( err ) ;
12
+ }
13
+ }
14
+ }
You can’t perform that action at this time.
0 commit comments