import { ErrorHandler } from '@angular/core' ; name description NgModule NgModule export class IonicErrorHandler extends ErrorHandler { constructor ( ) { super ( ) ; } internal handleError ( err ) { super . handleError ( err ) ; try { const win = window ; let monitor ; monitor = win [ 'IonicDevServer' ] ; monitor && monitor . handleError && monitor . handleError ( err ) ; monitor = ( win [ 'Ionic' ] = win [ 'Ionic' ] || { } ) . Monitor ; monitor && monitor . handleError && monitor . handleError ( err ) ; } catch ( e ) { } } }