Skip to content

Implementando camada de exception #13

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
1 commit merged into from
Mar 19, 2025
Merged

Conversation

Gabriel-Rozendo
Copy link
Contributor

No description provided.


//TODO: Criar tratamento de erro para usuários não encontrados, esse tratamento vai ser para o 404 NotFoundException
@ExceptionHandler(NotFoundException.class)
public ResponseEntity<ApiError> notFound(NotFoundException notFoundException) {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Show, agr vc pode tratar os dados não encontrados! Usa no service

@Gabriel-Rozendo Gabriel-Rozendo closed this pull request by merging all changes into main in cee6820 Mar 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants