Fixing Java 6 specific IOException constructor in previous commit.

git-svn-id: http://scm.dspace.org/svn/repo/branches/dspace-1_5_x@3017 9c30dcfa-912a-0410-8fc2-9e0234be79fd
This commit is contained in:
Tim Donohue
2008-07-30 22:02:47 +00:00
parent e54b36429c
commit 01ce2b2378

View File

@@ -304,7 +304,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;
}
}
}
@@ -338,7 +340,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;
}
}
}