-
Notifications
You must be signed in to change notification settings - Fork 329
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
Extracting exception key to constant #772
Conversation
It's fair! On Monday, September 1, 2014, Otávio Garcia notifications@github.com
Rafael Ponte |
good point, +1 changing it (but maybe we should add a changelog note) |
Extracting exception key to constant
Extracting converter exception keys to a constant allow users to see which keys are used in ResourceBundle, because Javadocs generate a page called "Constant Field Values".
When I refactor the code I see some wrong messages like
not_a_valid_interger
to aShort
,Byte
andLong
converters. So I choose to use alwaysnot_a_valid_number
as used bybyte
,BigDecimal
,Double
andFloat
uses. What you think about this change, devs?