Skip to content

Instantly share code, notes, and snippets.

@melcor76
Last active Jan 25, 2019
Embed
What would you like to do?
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