Skip to content

Conversation

@seungzzok
Copy link
Member

Close #42

API Docs

✴️ request

  • 1
  • 2

✅ response

  • 1
  • 2

Comment

  • 예시

- participation category를 email로 변경
- 임시로 ETC_ERROR로 처리했던 에러들을 상황에 맞게 전부 구체화
- Optional을 사용하면 데이터가 존재하지 않는 경우 빈 리스트를 return하기 때문에 orElseThrow를 사용한 Error Custom을 진행할 수 없어서 제거
- 리스트의 길이가 0인 경우에 대한 예외처리를 if문을 사용해 직접 처리
- 리스트의 길이가 0이어도 되는 데이터에 대한 예외처리는 삭제
@seungzzok seungzzok added the 🔨 Refactor 코드 리팩토링 label Apr 28, 2025
@seungzzok seungzzok added this to the 리팩토링 milestone Apr 28, 2025
@seungzzok seungzzok self-assigned this Apr 28, 2025
@seungzzok seungzzok linked an issue Apr 28, 2025 that may be closed by this pull request
@seungzzok seungzzok merged commit 80785ba into main Apr 28, 2025
1 check passed
@seungzzok seungzzok deleted the 42-에러-코드-정리 branch April 28, 2025 09:35
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