[dna-issues] [JBoss JIRA] Resolved: (DNA-96) ValueFormatException should be replaced by existing JDK IllegalArgumentException and UnsupportedOperationException in ValueFactories

Randall Hauch (JIRA) jira-events at lists.jboss.org
Tue Aug 19 17:25:22 EDT 2008


     [ https://jira.jboss.org/jira/browse/DNA-96?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Randall Hauch resolved DNA-96.
------------------------------

    Resolution: Done


Changed to rely upon a ValueFormatException for all conversions, and the IoException only on conversions that take (or might take) a Binary, InputStream, or Reader.  Also added methods to the ValueFactory that create from a DateTime and from a Binary (not sure why these were never added).

> ValueFormatException should be replaced by existing JDK IllegalArgumentException and UnsupportedOperationException in ValueFactories
> ------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: DNA-96
>                 URL: https://jira.jboss.org/jira/browse/DNA-96
>             Project: DNA
>          Issue Type: Feature Request
>          Components: SPI
>    Affects Versions: 0.1
>            Reporter: Johnny Verhaeg
>            Assignee: Randall Hauch
>             Fix For: 0.2
>
>   Original Estimate: 0 minutes
>  Remaining Estimate: 0 minutes
>
> 1) There may be a development situation where it is advantageous to know a passed-in path, segment, etc., is invalid (e.g., due to bad index value, character used, etc.) vs. a bad usage of the factory, such as trying to convert a Boolean value into a Date.
> 2) Non-ValueFactories classes that interact with the ValueFactories, such as BasicName, will need to throw IllegalArgumentException anyway when an invalid name is passed in, meaning the ValueFactories that interact with it would need to catch the IAE and re-throw as a ValueFormatException.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the dna-issues mailing list