Skip to content

예외 처리 로직 중앙화 구현 #2

Description

@coderabbitai

개요

현재 API에서 발생하는 예외들이 각 Controller에서 개별적으로 처리되고 있습니다. 이를 공통 관심사로 분리하여 중앙화된 예외 처리 메커니즘을 구현해야 합니다.

구현 방안

  • 와 를 사용한 글로벌 예외 처리기 구현
  • 비즈니스 로직에 맞는 커스텀 예외 클래스 정의 (예: ResourceNotFoundException, BadRequestException 등)
  • 표준화된 에러 응답 DTO 정의
  • Controller에서 try-catch 블록 제거 및 명시적 예외 발생 패턴 적용

기대 효과

  • 코드 중복 제거
  • 일관된 에러 응답 포맷
  • Controller 코드의 가독성 향상
  • 예외 처리 로직 변경 시 유지보수 용이성 증가

참조

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions