Skip to content

Feat: 예외 처리 세분화#13

Merged
choiseoji merged 9 commits intodevelopfrom
feat/2-globalExceptionHandler
Jul 12, 2025
Merged

Feat: 예외 처리 세분화#13
choiseoji merged 9 commits intodevelopfrom
feat/2-globalExceptionHandler

Conversation

@choiseoji
Copy link
Contributor

✨ 연관된 이슈

close #2


📝 작업 내용 (주요 변경 사항)

  • 기존에 ApplicationException 이었던거 도메인 별로 에러 코드 분리했습니다
  • 그에 따라서 GlobalExceptionHandler 수정했습니다 (에러 코드 하나 당 서브 클래스 하나씩 있는데, HttpStatus 에 맞게 exceptionHandler에 추가해주시면 됩니다!!)

💬 리뷰 요구사항

리뷰어가 특별히 봐주었으면 하는 부분이 있다면 작성해주세요

@choiseoji choiseoji self-assigned this Jul 11, 2025
@choiseoji choiseoji added the ✨feat 기능 개발 시 label Jul 11, 2025
@github-actions
Copy link

Test Coverage Report

Overall Project 41.9% -10.46% 🍏
Files changed 36.82%

File Coverage
AuthErrorCode.java 100% 🍏
AuthService.java 83.12% -5.04%
AuthException.java 50% -50% 🍏
FileService.java 10.21% -15.32%
FileException.java 0%
FileErrorCode.java 0%

Copy link
Contributor

@west-eastH west-eastH left a comment

Choose a reason for hiding this comment

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

고생하셨습니다!! 근데 이거 장점이 뭔가요??

@choiseoji
Copy link
Contributor Author

choiseoji commented Jul 12, 2025

고생하셨습니다!! 근데 이거 장점이 뭔가요??
이거 try catch 하거나 전역 예외 처리기에서 좀 더 세분화해서 처리할 수 있는 거랑..나중에 서비스가 커졌을때 확장성이 좋다고 들었습니다..

@choiseoji choiseoji closed this Jul 12, 2025
@choiseoji choiseoji reopened this Jul 12, 2025
@github-actions
Copy link

Test Coverage Report

Overall Project 41.9% -10.46% 🍏
Files changed 36.82%

File Coverage
AuthErrorCode.java 100% 🍏
AuthService.java 83.12% -5.04%
AuthException.java 50% -50% 🍏
FileService.java 10.21% -15.32%
FileException.java 0%
FileErrorCode.java 0%

@choiseoji choiseoji merged commit 69909b8 into develop Jul 12, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

✨feat 기능 개발 시

Projects

None yet

Development

Successfully merging this pull request may close these issues.

✨feat : 전역 예외 처리기 도입

2 participants