mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-11 03:53:07 +00:00
Wrap SQLExceptions in ItemCounter with ItemCountExceptions and wrap ItemCountExceptions in Collection and Community in RuntimeExceptions.
git-svn-id: http://scm.dspace.org/svn/repo/branches/dspace-1_5_x@2339 9c30dcfa-912a-0410-8fc2-9e0234be79fd
This commit is contained in:
@@ -1065,7 +1065,7 @@ public class Collection extends DSpaceObject
|
||||
{
|
||||
// FIXME: upside down exception handling due to lack of good
|
||||
// exception framework
|
||||
throw new SQLException(e);
|
||||
throw new RuntimeException(e.getMessage(), e);
|
||||
}
|
||||
|
||||
// Delete collection row
|
||||
|
Reference in New Issue
Block a user