-
Notifications
You must be signed in to change notification settings - Fork 1
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
Exception 컨벤션 #24
Merged
Merged
Exception 컨벤션 #24
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- HttpStatus 에 기반한 exception 구현
- BadRequestException: 400 에러에 대한 Exception - UnauthorizedException: 401 에러에 대한 Exception - ForbiddenException: 403 에러에 대한 Exception - NotFoundException: 404 에러에 대한 Exception - MethodNotAllowedException: 405 에러에 대한 Exception - ConflictException: 409 에러에 대한 Exception
- ControllerAdvice 기본 생성 우선 순위 문제 때문에 생성한 CustomRestControllerAdvice - 기존 RestControllerAdvice 보다 우선 순위가 한 단계 높다.
kimhyun5u
commented
Aug 12, 2024
- DomainExceptionHandler 로 변경했습니다.
Dr-KoKo
approved these changes
Aug 12, 2024
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
공통적으로 사용되는 클래스라서 네이밍이 고민되시겠네요 ㅎㅎ
전혀 파악되지 않는 네이밍이 아니라면 고민하지 마시고 편안하게 결정지으셔도 될 것 같습니다.
june-777
reviewed
Aug 12, 2024
june-777
approved these changes
Aug 12, 2024
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍👍
Hyeon-Uk
approved these changes
Aug 12, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
💡 다음 이슈를 해결했어요.
Issue Link - #20
Discussion Link - #14
💡 이슈를 처리하면서 추가된 코드가 있어요.
💡 이런 고민을 했어요.
💡 다음 자료를 참고하면 좋아요.
TestNotFoundException.java
TestErrorCode.java
TestExceptionHandler.java
✅ 셀프 체크리스트