refactor: 에러 메세지 수정 #201
Conversation
|
Warning Rate limit exceeded@Jjiggu has exceeded the limit for the number of commits or files that can be reviewed per hour. Please wait 16 minutes and 38 seconds before requesting another review. ⌛ How to resolve this issue?After the wait time has elapsed, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our FAQ for further information. 📒 Files selected for processing (3)
WalkthroughStorePayment 관련 예외 처리 및 컨트롤러 응답 로직이 개선되었습니다. StorePaymentNotFoundException에 대한 전역 예외 처리기가 추가되었고, 컨트롤러에서 결제 정보가 없을 때의 응답 메시지와 상태 코드가 변경되었습니다. 예외 메시지도 보다 명확하게 수정되었습니다. Changes
Sequence Diagram(s)sequenceDiagram
participant Client
participant StorePaymentController
participant Service
participant GlobalExceptionHandler
Client->>StorePaymentController: GET /store-payment/{storeId}
StorePaymentController->>Service: getStorePaymentByStoreId(storeId)
Service-->>StorePaymentController: 결제 정보(Optional) 반환
alt 결제 정보 존재
StorePaymentController-->>Client: 200 OK + 결제 정보
else 결제 정보 없음
StorePaymentController-->>Client: 200 OK + "등록된 결제 정보가 없습니다." 메시지
else 예외 발생 (StorePaymentNotFoundException)
StorePaymentController-->>GlobalExceptionHandler: 예외 발생
GlobalExceptionHandler-->>Client: 204 No Content + 에러 메시지 및 코드
end
Estimated code review effort🎯 2 (Simple) | ⏱️ ~7 minutes Suggested reviewers
✨ 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. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
작업 요약
Issue Link
#186
문제점 및 어려움
해결 방안
Reference
Summary by CodeRabbit