Created
February 26, 2018 10:14
-
-
Save MichaelMarner/56be1a84cb20d0b5fcb9f0ed6fed43aa to your computer and use it in GitHub Desktop.
Custom Error Handler
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { ErrorHandler } from '@angular/core'; | |
export class MyErrorHandler implements ErrorHandler { | |
constructor() {} | |
async handleError(error) { | |
console.error(error); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment