From aa509958816741ca6a759c817d388739c7f65430 Mon Sep 17 00:00:00 2001 From: Tim Donohue Date: Wed, 30 Jul 2008 22:03:08 +0000 Subject: [PATCH] Fixing Java 6 specific IOException constructor in previous commit. git-svn-id: http://scm.dspace.org/svn/repo/trunk@3018 9c30dcfa-912a-0410-8fc2-9e0234be79fd --- .../dspace/app/xmlui/objectmanager/ContainerAdapter.java | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/dspace-xmlui/dspace-xmlui-api/src/main/java/org/dspace/app/xmlui/objectmanager/ContainerAdapter.java b/dspace-xmlui/dspace-xmlui-api/src/main/java/org/dspace/app/xmlui/objectmanager/ContainerAdapter.java index a82c744655..a9a33ddc4a 100644 --- a/dspace-xmlui/dspace-xmlui-api/src/main/java/org/dspace/app/xmlui/objectmanager/ContainerAdapter.java +++ b/dspace-xmlui/dspace-xmlui-api/src/main/java/org/dspace/app/xmlui/objectmanager/ContainerAdapter.java @@ -296,7 +296,9 @@ public class ContainerAdapter extends AbstractAdapter } catch(ItemCountException e) { - throw new IOException("Could not obtain Collection item-count: ", e); + IOException ioe = new IOException("Could not obtain Collection item-count"); + ioe.initCause(e); + throw ioe; } } } @@ -331,7 +333,9 @@ public class ContainerAdapter extends AbstractAdapter } catch(ItemCountException e) { - throw new IOException("Could not obtain Community item-count: ", e); + IOException ioe = new IOException("Could not obtain Collection item-count"); + ioe.initCause(e); + throw ioe; } } }