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

refactor: 예외 처리 방식 개선 완료 #668

Merged
merged 23 commits into from
Feb 18, 2025
Merged

refactor: 예외 처리 방식 개선 완료 #668

merged 23 commits into from
Feb 18, 2025

Conversation

limehee
Copy link
Collaborator

@limehee limehee commented Feb 17, 2025

Summary

#650

중앙 집중식 예외 관리 체계를 구축하기 위해 BaseExceptionErrorCode를 활용하도록 개선하였습니다. 이를 통해 클라이언트가 ErrorCode 이름을 통해 오류를 쉽게 이해하고 처리할 수 있도록 지원합니다.

Tasks

  • BaseExceptionErrorCode를 기반으로 중앙 집중식 예외 관리 구현
  • GlobalExceptionHandler에서 발생하는 모든 예외를 ErrorCode와 매핑하여 처리하도록 수정
  • 기존 사용자 정의 예외 클래스 및 핸들러 검토 후 불필요한 클래스 제거

ETC

@limehee limehee added the 🔨 Refactor 코드 수정 및 개선 label Feb 17, 2025
@limehee limehee self-assigned this Feb 17, 2025
@limehee limehee linked an issue Feb 17, 2025 that may be closed by this pull request

Choose a reason for hiding this comment

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

Copilot reviewed 246 out of 261 changed files in this pull request and generated no comments.

Files not reviewed (15)
  • src/main/java/page/clab/api/domain/activity/activitygroup/exception/DuplicateAbsentExcuseException.java: Evaluated as low risk
  • src/main/java/page/clab/api/domain/activity/activitygroup/exception/AlreadyAppliedException.java: Evaluated as low risk
  • src/main/java/page/clab/api/domain/activity/activitygroup/exception/AlreadySubmittedThisWeekAssignmentException.java: Evaluated as low risk
  • src/main/java/page/clab/api/domain/activity/activitygroup/exception/ActivityGroupNotProgressingException.java: Evaluated as low risk
  • src/main/java/page/clab/api/domain/activity/activitygroup/exception/DuplicateAttendanceException.java: Evaluated as low risk
  • src/main/java/page/clab/api/domain/activity/activitygroup/exception/ActivityGroupNotFinishedException.java: Evaluated as low risk
  • src/main/java/page/clab/api/domain/activity/activitygroup/exception/AssignmentBoardHasNoDueDateTimeException.java: Evaluated as low risk
  • src/main/java/page/clab/api/domain/activity/activitygroup/api/ActivityGroupMemberController.java: Evaluated as low risk
  • src/main/java/page/clab/api/domain/activity/activitygroup/api/ActivityGroupBoardController.java: Evaluated as low risk
  • src/main/java/page/clab/api/domain/activity/activitygroup/api/AttendanceController.java: Evaluated as low risk
  • src/main/java/page/clab/api/domain/activity/activitygroup/api/ActivityGroupAdminController.java: Evaluated as low risk
  • src/main/java/page/clab/api/domain/activity/activitygroup/api/ActivityGroupReportController.java: Evaluated as low risk
  • src/main/java/page/clab/api/domain/activity/activitygroup/application/AttendanceService.java: Evaluated as low risk
  • src/main/java/page/clab/api/domain/activity/activitygroup/application/ActivityGroupReportService.java: Evaluated as low risk
  • src/main/java/page/clab/api/domain/activity/activitygroup/domain/ActivityGroupBoard.java: Evaluated as low risk
Comments suppressed due to low confidence (1)

src/main/java/page/clab/api/domain/activity/activitygroup/application/ActivityGroupAdminService.java:297

  • The error message for ErrorCode.INVALID_ROLE_CHANGE should be more descriptive. Suggestion: "Cannot change the member's role to none."
throw new BaseException(ErrorCode.INVALID_ROLE_CHANGE, "직책이 없는 멤버로 변경할 수 없습니다.");
@limehee limehee marked this pull request as draft February 17, 2025 14:20
@limehee limehee marked this pull request as ready for review February 17, 2025 15:42
Copy link
Member

@gwansikk gwansikk left a comment

Choose a reason for hiding this comment

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

해당 PR이 머지가 되면 서버도 업데이트 해주세요~

@limehee limehee merged commit 2829b93 into develop Feb 18, 2025
3 checks passed
@limehee limehee deleted the refactor/#650 branch February 18, 2025 07:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🔨 Refactor 코드 수정 및 개선
Projects
None yet
Development

Successfully merging this pull request may close these issues.

예외 처리 방식 개선
2 participants