Skip to content

Conversation

@remeio
Copy link
Contributor

@remeio remeio commented Jan 22, 2025

Use IllegalArgumentException instead of NumberFormatException.

gh-34305.

Use IllegalArgumentException instead of NumberFormatException.

spring-projectsgh-34305.

Signed-off-by: Mengqi Xu <[email protected]>
@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged or decided on label Jan 22, 2025
@rstoyanchev rstoyanchev self-assigned this Jan 27, 2025
Copy link
Contributor

@rstoyanchev rstoyanchev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the suggestion, but NumberFormatException is a subclass of IllegalArgumentException, so it is even more specific. It is also consistent with the exception raised by setter binding.

@rstoyanchev rstoyanchev added status: invalid An issue that we don't feel is valid and removed status: waiting-for-triage An issue we've not yet triaged or decided on labels Jan 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

status: invalid An issue that we don't feel is valid

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants