Skip to content

fix: clarify error message in TooManyValueExeption#21

Merged
ledex merged 2 commits into
mainfrom
fix/misleading-error-in-TooManyValueExeption
Apr 9, 2024
Merged

fix: clarify error message in TooManyValueExeption#21
ledex merged 2 commits into
mainfrom
fix/misleading-error-in-TooManyValueExeption

Conversation

@ledex

@ledex ledex commented Apr 9, 2024

Copy link
Copy Markdown
Contributor

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 review from a team, julian-spierefka and mherwig and removed request for a team April 9, 2024 13:51
@github-actions

github-actions Bot commented Apr 9, 2024

Copy link
Copy Markdown
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
@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