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

NumberFormatException not getting caught [SWF-661] #1455

spring-operator opened this issue May 5, 2008 · 0 comments

NumberFormatException not getting caught [SWF-661] #1455

spring-operator opened this issue May 5, 2008 · 0 comments


Copy link

Victor Salaman opened SWF-661 and commented

This is against 2.0.0-RELEASE

With the new model auto binding/validation, as it is right now, it is impossible to handle a String->Number typeMismatch, as the NumberFormatException is never handled, bypassing any binding handling you might have. I have temporarily fixed this by creating a wrapping formatterregistry which catches the NumberFormatException and rethrows as an InvalidFormatException.

The correct solution would be to actually catch NumberFormatException and rethrowing it as an InvalidFormatException.


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet

No branches or pull requests

1 participant