Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

192
Views
Global error handling: HttpInterceptor vs extended class

In an Angular application, our standard way of catching and displaying errors is done by extending a myErrorService class on each component that needs it. When our component makes an HTTP request, it uses a method on myErrorService via .pipe(this.myErrorServicesErrorHandlingMethod()).

Would it be more performant and architecturally sound to instead utilize an HttpInterceptor (error interceptor) to handle/display all errors? It seems like there would be less code and smaller components, since we wouldn't have to extend multiple components and could instead automatically intercept our HTTP calls, but I don't know much about the performance of HttpInterceptor.

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!