Skip to content
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

[#59] feat: GlobalExceptionHandling #60

Merged
merged 1 commit into from
Aug 12, 2023
Merged

[#59] feat: GlobalExceptionHandling #60

merged 1 commit into from
Aug 12, 2023

Conversation

kdomo
Copy link
Member

@kdomo kdomo commented Aug 11, 2023

연관 이슈

작업내용

  • ResponseEntityExceptionHandler클래스를 상속받아 handleExceptionInternal메서드로 ErrorResponse 형태로 공통된 형식으로 에러를 return하도록 설정
  • Valid 어노테이션 사용하여 Validation 실패 시 발생하는 MethodArgumentNotValidException 핸들링
  • Request Param Validation 실패 시 발생하는 ConstraintViolationException 핸들링
  • TodaysFailCodeException 핸들링
  • 500번대 에러 핸들링 (추 후 슬랙 메세지 발송 기능 추가 예정)

@kdomo kdomo added the ✨ Feature 기능 개발 label Aug 11, 2023
@kdomo kdomo self-assigned this Aug 11, 2023
@sonarcloud
Copy link

sonarcloud bot commented Aug 11, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 39 Code Smells

28.3% 28.3% Coverage
0.0% 0.0% Duplication

@kdomo kdomo merged commit ec049e1 into develop Aug 12, 2023
3 checks passed
@kdomo kdomo deleted the feature/#59 branch August 12, 2023 10:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
✨ Feature 기능 개발
Projects
None yet
Development

Successfully merging this pull request may close these issues.

GlobalExceptionHandling
1 participant