fix no contingency list exception#243
Conversation
Signed-off-by: Etienne LESOT <etienne.lesot@rte-france.com>
|
Warning Rate limit exceeded
You’ve run out of usage credits. Purchase more in the billing tab. ⌛ 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. ℹ️ Review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughThis PR adds AllContingencyListMissingException and uses it: ActionsService throws it when contingency-list IDs are null/empty; SecurityAnalysisWorkerService catches it and converts it to SecurityAnalysisException. Tests updated to assert the new exception and message. ChangesContingency List Exception Refactoring
Suggested Reviewers
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. 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. Comment |
|
--------- Signed-off-by: Etienne LESOT <etienne.lesot@rte-france.com>



PR Summary
if an illegal exception is thrown the error is 'there is no contingency list'. So to avoid to hide exceptions, a new exception AllContingencyListMissingException is created and caught.