Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

138
Visualizações
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 Respostas
Responde à pergunta

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 Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda