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

140
Views
Throw HttpException at service in nestjs

Is it good way to throw Http Exeption at service in nestjs? What is the best way to processing error at service in nestjs?

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

From my point of view, services can be reusable and contain business logic, so handling exceptions there is not the best, since it could be that in another use case, the thrown exception is not the most appropriate, in my case the services throw custom errors that can be later interpreted by the controller and that is where I think the Http Exception should be thrown.

about 4 years ago · DarthBonest Report
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!