Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: clarify error message in TooManyValueExeption #21

Merged
merged 2 commits into from
Apr 9, 2024

Conversation

ledex
Copy link
Contributor

@ledex ledex commented Apr 9, 2024

When only a single value is needed for the logical operator, but more/fewer values are present, TooManyValueException used to be thrown. However, the error was misleading and only covered the case where more values were present.

This MR fixes this and improves the naming of the exception.When only a single value is needed for the logical operator, but more/fewer values are present, TooManyValueException used to be thrown. However, the error was misleading and only covered the case where more values were present.

This PR fixes that and improves the naming of the exception.

@ledex ledex requested a review from a team as a code owner April 9, 2024 13:51
@ledex ledex requested review from mherwig and julian-spierefka and removed request for a team April 9, 2024 13:51
Copy link

github-actions bot commented Apr 9, 2024

Overall Project 83.25% 🍏
Files changed 100% 🍏

File Coverage
NoSingleValueException.java 100% 🍏
ComparisonOperator.java 92.39% 🍏
EqualsOperator.java 87.1% 🍏

@Th3Shadowbroker Th3Shadowbroker self-requested a review April 9, 2024 15:19
@ledex ledex merged commit 1f6a1b2 into main Apr 9, 2024
5 checks passed
@ledex ledex deleted the fix/misleading-error-in-TooManyValueExeption branch April 9, 2024 15:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants