You are viewing a plain text version of this content. The canonical link for it is here.
Posted to graffito-dev@incubator.apache.org by "Martin Koci (JIRA)" <ji...@apache.org> on 2005/10/08 22:11:47 UTC
[jira] Created: (GRFT-58) Can be JcrMappingException type of RUNTIME exception?
Can be JcrMappingException type of RUNTIME exception?
-----------------------------------------------------
Key: GRFT-58
URL: http://issues.apache.org/jira/browse/GRFT-58
Project: Graffito
Type: Improvement
Components: JCR-Mapping
Versions: 1.0-a1-dev
Reporter: Martin Koci
http://www.mindview.net/Etc/Discussions/CheckedExceptions
http://www-128.ibm.com/developerworks/java/library/j-jtp05254.html
HibernateException is runtime too (from version 3.0)
--
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
[jira] Assigned: (GRFT-58) Can be JcrMappingException type of RUNTIME exception?
Posted by "Christophe Lombart (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/GRFT-58?page=all ]
Christophe Lombart reassigned GRFT-58:
--------------------------------------
Assign To: Christophe Lombart
> Can be JcrMappingException type of RUNTIME exception?
> -----------------------------------------------------
>
> Key: GRFT-58
> URL: http://issues.apache.org/jira/browse/GRFT-58
> Project: Graffito
> Type: Improvement
> Components: JCR-Mapping
> Versions: 1.0-a1-dev
> Reporter: Martin Koci
> Assignee: Christophe Lombart
>
> http://www.mindview.net/Etc/Discussions/CheckedExceptions
> http://www-128.ibm.com/developerworks/java/library/j-jtp05254.html
> HibernateException is runtime too (from version 3.0)
--
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
[jira] Commented: (GRFT-58) Can be JcrMappingException type of RUNTIME exception?
Posted by "Christophe Lombart (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/GRFT-58?page=comments#action_12332110 ]
Christophe Lombart commented on GRFT-58:
----------------------------------------
Thanks for those nice articles.
I'm ok to use runtime exceptions for most of the part of the code (eg. pck like mapper, collection converter, ... )
But what about the persistence manager methods ? eg. when you are not allowed to insert the object or why not delete the object ? I think checked exceptions are more appropriate like InsertObjectException, DeleteObjectExpcetion, ...
What do you think about that ?
> Can be JcrMappingException type of RUNTIME exception?
> -----------------------------------------------------
>
> Key: GRFT-58
> URL: http://issues.apache.org/jira/browse/GRFT-58
> Project: Graffito
> Type: Improvement
> Components: JCR-Mapping
> Versions: 1.0-a1-dev
> Reporter: Martin Koci
> Assignee: Christophe Lombart
>
> http://www.mindview.net/Etc/Discussions/CheckedExceptions
> http://www-128.ibm.com/developerworks/java/library/j-jtp05254.html
> HibernateException is runtime too (from version 3.0)
--
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
[jira] Resolved: (GRFT-58) Can be JcrMappingException type of RUNTIME exception?
Posted by "Christophe Lombart (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/GRFT-58?page=all ]
Christophe Lombart resolved GRFT-58:
------------------------------------
Fix Version: 1.0-a1-dev
Resolution: Fixed
Now all all exceptions inherits from runtime exception. I created new exceptions :
* PersistenceException throws when the persistence manager cannot insert, update, delete or retrieve an object
* InitMapperException throws when the Mapper cannot read the xml mapping file
* RepositoryException throws when something is wrong with the JCR repository
Others ideas or comments are welcome.
> Can be JcrMappingException type of RUNTIME exception?
> -----------------------------------------------------
>
> Key: GRFT-58
> URL: http://issues.apache.org/jira/browse/GRFT-58
> Project: Graffito
> Type: Improvement
> Components: JCR-Mapping
> Versions: 1.0-a1-dev
> Reporter: Martin Koci
> Assignee: Christophe Lombart
> Fix For: 1.0-a1-dev
>
> http://www.mindview.net/Etc/Discussions/CheckedExceptions
> http://www-128.ibm.com/developerworks/java/library/j-jtp05254.html
> HibernateException is runtime too (from version 3.0)
--
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