Skip to content

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

@coderabbitai

Description

@coderabbitai

설명

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

구현 방법

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

참조

기대 효과

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions