You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jackrabbit.apache.org by "Alexander Klimetschek (JIRA)" <ji...@apache.org> on 2008/06/16 16:21:45 UTC

[jira] Created: (JCR-1652) Better 'invalid format' exception messages for value classes

Better 'invalid format' exception messages for value classes
------------------------------------------------------------

                 Key: JCR-1652
                 URL: https://issues.apache.org/jira/browse/JCR-1652
             Project: Jackrabbit
          Issue Type: Improvement
          Components: jackrabbit-jcr-commons
            Reporter: Alexander Klimetschek


The valueOf() methods of the Value classes throw an exception without information on the desired type and without the String value that gave the error.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (JCR-1652) Better 'invalid format' exception messages for value classes

Posted by "Marcel Reutegger (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/JCR-1652?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12605519#action_12605519 ] 

Marcel Reutegger commented on JCR-1652:
---------------------------------------

+1

> Better 'invalid format' exception messages for value classes
> ------------------------------------------------------------
>
>                 Key: JCR-1652
>                 URL: https://issues.apache.org/jira/browse/JCR-1652
>             Project: Jackrabbit
>          Issue Type: Improvement
>          Components: jackrabbit-jcr-commons
>            Reporter: Alexander Klimetschek
>         Attachments: JCR-1652.patch
>
>
> The valueOf() methods of the Value classes throw an exception without information on the desired type and without the String value that gave the error.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (JCR-1652) Better 'invalid format' exception messages for value classes

Posted by "Alexander Klimetschek (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/JCR-1652?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Alexander Klimetschek updated JCR-1652:
---------------------------------------

    Attachment: JCR-1652.patch

Changes look like this:

-            throw new ValueFormatException("invalid format", e);
+            throw new ValueFormatException("not a valid double format: " + s, e);

If you all agree with this change, I will commit it.

> Better 'invalid format' exception messages for value classes
> ------------------------------------------------------------
>
>                 Key: JCR-1652
>                 URL: https://issues.apache.org/jira/browse/JCR-1652
>             Project: Jackrabbit
>          Issue Type: Improvement
>          Components: jackrabbit-jcr-commons
>            Reporter: Alexander Klimetschek
>         Attachments: JCR-1652.patch
>
>
> The valueOf() methods of the Value classes throw an exception without information on the desired type and without the String value that gave the error.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (JCR-1652) Better 'invalid format' exception messages for value classes

Posted by "Jukka Zitting (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/JCR-1652?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jukka Zitting updated JCR-1652:
-------------------------------

    Fix Version/s: 1.5.0

> Better 'invalid format' exception messages for value classes
> ------------------------------------------------------------
>
>                 Key: JCR-1652
>                 URL: https://issues.apache.org/jira/browse/JCR-1652
>             Project: Jackrabbit
>          Issue Type: Improvement
>          Components: jackrabbit-jcr-commons
>            Reporter: Alexander Klimetschek
>             Fix For: 1.5.0
>
>         Attachments: JCR-1652.patch
>
>
> The valueOf() methods of the Value classes throw an exception without information on the desired type and without the String value that gave the error.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (JCR-1652) Better 'invalid format' exception messages for value classes

Posted by "Alexander Klimetschek (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/JCR-1652?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Alexander Klimetschek resolved JCR-1652.
----------------------------------------

    Resolution: Fixed

Fixed in revision 668857.

> Better 'invalid format' exception messages for value classes
> ------------------------------------------------------------
>
>                 Key: JCR-1652
>                 URL: https://issues.apache.org/jira/browse/JCR-1652
>             Project: Jackrabbit
>          Issue Type: Improvement
>          Components: jackrabbit-jcr-commons
>            Reporter: Alexander Klimetschek
>         Attachments: JCR-1652.patch
>
>
> The valueOf() methods of the Value classes throw an exception without information on the desired type and without the String value that gave the error.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.