refactor/물주기 햇빛주기 에러 수정#142
Hidden character warning
Conversation
|
Caution Review failedThe pull request is closed. WalkthroughGardenService.sunlightGarden의 쿨다운 위반 시 예외를 IllegalStateException에서 CustomApiException(ErrorCode.SUNLIGHT_COOL_DOWN)으로 변경했습니다. ErrorCode의 WATERING_COOL_DOWN, ALREADY_WATERED_GARDEN, SUNLIGHT_COOL_DOWN가 400→202, 코드 E4000x→E20002로 통일되고 일부 메시지가 단축되었습니다. Changes
Sequence Diagram(s)sequenceDiagram
autonumber
participant C as Client
participant S as GardenService
participant E as ErrorCode (Enum)
participant X as CustomApiException
Note over C,S: 햇빛 주기 요청
C->>S: sunlightGarden(gardenId, userId)
S->>S: 최근 햇빛 시간/쿨다운 확인
alt 쿨다운 위반(변경됨)
S->>E: 사용 ErrorCode.SUNLIGHT_COOL_DOWN
S-->>C: throw X(ErrorCode.SUNLIGHT_COOL_DOWN)
else 가능
S->>S: 햇빛 카운트 증가
S->>S: 위시트리 포인트 적립
S->>S: 햇빛 시간 기록
S-->>C: 성공 응답
end
Note over E: WATERING_COOL_DOWN/ALREADY_WATERED_GARDEN/SUNLIGHT_COOL_DOWN = 202, E20002
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Possibly related issues
Possibly related PRs
Poem
Tip 🔌 Remote MCP (Model Context Protocol) integration is now available!Pro plan users can now connect to remote MCP servers from the Integrations page. Connect with popular remote MCPs such as Notion and Linear to add more context to your reviews and chats. 📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 💡 Knowledge Base configuration:
You can enable these sources in your CodeRabbit configuration. 📒 Files selected for processing (2)
✨ Finishing Touches
🧪 Generate unit tests
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. CodeRabbit Commands (Invoked using PR/Issue comments)Type Other keywords and placeholders
CodeRabbit Configuration File (
|
refactor/물주기 햇빛주기 에러 수정
Summary by CodeRabbit