GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||||||||||||
GeezerVison is showing github.com — Fix empty error message for pyramid side length by Axsasf · Pull Request #7723 · TheAlgorithms/Java ConversationDescriptionFixed an empty IllegalArgumentException message in the Changes Made
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
|
There was an error while loading. Please reload this page.
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@ ## master #7723 +/- ## ============================================ - Coverage 82.23% 82.22% -0.01% Complexity 8402 8402 ============================================ Files 843 843 Lines 26140 26140 Branches 5100 5100 ============================================ - Hits 21495 21493 -2 - Misses 3853 3854 +1 - Partials 792 793 +1 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| if (slantHeight <= 0) { | ||
| throw new IllegalArgumentException("slant height must be greater than 0"); | ||
| } | ||
| if (sideLength <= 0) { |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
The updated validation messages clearly explain that both sideLength and slantHeight must be positive. This makes invalid input errors easier to understand.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
At least 1 approving review is required to merge this pull request.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.