-
-
Save melcor76/d4d71d5f5a430195fde64f84d8496167 to your computer and use it in GitHub Desktop.
Error handling - basic-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'; | |
@Injectable() | |
export class GlobalErrorHandler implements ErrorHandler { | |
handleError(error) { | |
// your custom error handling logic | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment