jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Stefan Guggisberg (JIRA)" <j...@apache.org>
Subject [jira] Commented: (JCR-472) Wrap IllegalArgumentException from UUID when bad ID passed to Session.getNodeByUUID
Date Mon, 03 Jul 2006 08:08:31 GMT
    [ http://issues.apache.org/jira/browse/JCR-472?page=comments#action_12418918 ] 

Stefan Guggisberg commented on JCR-472:
---------------------------------------

think ItemNotFoundException is misleading and inconsistent, RepositoryException
would IMO be more appropriate. api methods in jackrabbit that take path
arguments throw RepositoryException rather than PathNotFoundException
if the path format is incorrect.

> Wrap IllegalArgumentException from UUID when bad ID passed to Session.getNodeByUUID
> -----------------------------------------------------------------------------------
>
>          Key: JCR-472
>          URL: http://issues.apache.org/jira/browse/JCR-472
>      Project: Jackrabbit
>         Type: Improvement

>   Components: core
>     Versions: 1.0, 1.0.1, 0.9
>  Environment: WinXP
>     Reporter: David Kennedy
>     Assignee: Jukka Zitting
>  Attachments: invalid-uuid.r418656.patch
>
> Hi,
> On 6/30/06, David Kennedy <davek@us.ibm.com> wrote:
> > When invoking session.getNodeByUUID and passing an invalid ID, an
> > IllegalArgumentException is thrown.  Should this be wrapped in an
> > ItemNotFoundException or RepositoryException by SessionImpl?
> Good point, an ItemNotFoundException would probably be best. Could you
> please file a Jira issue for this?
> BR,
> Jukka Zitting

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


Mime
View raw message