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

API 예외 처리 로직 중앙화 #1826

Closed
coderabbitai bot opened this issue Mar 26, 2025 · 1 comment
Closed

API 예외 처리 로직 중앙화 #1826

coderabbitai bot opened this issue Mar 26, 2025 · 1 comment

Comments

@coderabbitai
Copy link

coderabbitai bot commented Mar 26, 2025

설명

현재 각 컨트롤러에서 try-catch 블록을 사용하여 예외를 처리하는 대신, 예외 처리 로직을 중앙화하여 관리할 필요가 있습니다.

구현 방법

  • @RestControllerAdvice@ExceptionHandler를 활용한 글로벌 예외 처리기 구현
  • 커스텀 예외 클래스 정의 (ResourceNotFoundException, BadRequestException 등)
  • 표준화된 에러 응답 DTO 구현

참조

기대 효과

  • 코드 중복 감소
  • 일관된 에러 응답 형식
  • 관심사 분리를 통한 코드 유지보수성 향상
@yakpoong
Copy link

I’m sorry — I was using this project by forking it, and it seems that my code review bot malfunctioned.
I would like to close this issue, but I don’t have the permission to do so.
I’d appreciate it if you could delete or close this issue. Thank you!

@dsyer dsyer closed this as completed Mar 26, 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

No branches or pull requests

2 participants