[threeten-dev] Draft of new UnsupportedTemporalTypeException update
roger riggs
roger.riggs at oracle.com
Sat Feb 23 12:18:23 PST 2013
Hi,
Issue #245: https://github.com/ThreeTen/threeten/issues/245
suggests that a more specific exception be used for cases
where the field or units or values are unsupported or invalid.
I expect that with some review, the criteria for using the new exception
vs DateTimeException and the addition of @throws
UnsupportedTemporalTypeException
will need to be refined.
It may be preferable to put the detailed exception into the
java.time.temporal
package since developers would normally only need to be using
DateTimeException
if they were catching exceptions.
javadoc:
http://cr.openjdk.java.net/~rriggs/javadoc-temporaltypeexception-245/
webrev: http://cr.openjdk.java.net/~rriggs/webrev-temporaltypeexception-245/
Please review and comment.
--
Thanks, Roger
Oracle Java Platform Group
Green Oracle <http://www.oracle.com/commitment> Oracle is committed to
developing practices and products that help protect the environment
More information about the threeten-dev
mailing list