Skip to content

Instantly share code, notes, and snippets.

@melcor76
Last active January 25, 2019 14:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save melcor76/d4d71d5f5a430195fde64f84d8496167 to your computer and use it in GitHub Desktop.
Save melcor76/d4d71d5f5a430195fde64f84d8496167 to your computer and use it in GitHub Desktop.
Error handling - basic-error-handler
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