-
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
Chore/issue 9 #10
Chore/issue 9 #10
Conversation
Custom exception 설정을 하기 위한, ErrorCode enum, CustomException, CustomExceptionHandler, ErrorDTO를 생성. CustomException 핸들링을 동작시키기 위한 Security 설정을 추가함. CustomException 핸들링 동작을 확인할 수 있는 test api 추가 (api/develop/v1/unauthorized, api/develop/v1/bad-request)
dto에 error 폴더를 생성 뒤, request/response로 분리하여 관리하는 방법으로 변경
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.
팀원들 같이 정해보면 좋을것같은 몇부분 리뷰로 함께 달아놨습니다!
함께 논의했으면 좋을 것 같은 부분
- dto에 record 타입 도입
- 에러 전에 log.warn 던질지
src/main/java/com/compono/ibackend/common/dto/error/response/ErrorDTO.java
Outdated
Show resolved
Hide resolved
src/main/java/com/compono/ibackend/common/dto/error/response/ErrorDTO.java
Outdated
Show resolved
Hide resolved
src/main/java/com/compono/ibackend/common/dto/error/response/ErrorDTO.java
Outdated
Show resolved
Hide resolved
src/main/java/com/compono/ibackend/common/handler/CustomExceptionHandler.java
Show resolved
Hide resolved
code의 값이 null인 경우는 존재하지 않기 때문에 int 타입으로 변경
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.
👍
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.
👍🏽
@jifrozen0110
|
No description provided.