Skip to content

Instantly share code, notes, and snippets.

@robertohuertasm
Last active December 23, 2018 02:03
Show Gist options
  • Save robertohuertasm/82948adfb2ff9edb99daa752dfed7f71 to your computer and use it in GitHub Desktop.
Save robertohuertasm/82948adfb2ff9edb99daa752dfed7f71 to your computer and use it in GitHub Desktop.
never miss error ionic
class CustomErrorHandler extends ErrorHandler {
handleError(error: Error) {
// do something with the exception
}
}
@NgModule({
providers: [{ provide: ErrorHandler, useClass: CustomErrorHandler }],
})
class AppModule {}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment