[Mulgara-svn] r1167 - trunk/src/jar/resolver/java/org/mulgara/resolver
pag at mulgara.org
pag at mulgara.org
Sat Aug 23 02:00:06 UTC 2008
Author: pag
Date: 2008-08-22 19:00:05 -0700 (Fri, 22 Aug 2008)
New Revision: 1167
Modified:
trunk/src/jar/resolver/java/org/mulgara/resolver/StringPoolSessionFactory.java
Log:
Using StoreExceptions instead of NodeExceptions as the close and delete methods are present on both XANodePool and XAStringPool
Modified: trunk/src/jar/resolver/java/org/mulgara/resolver/StringPoolSessionFactory.java
===================================================================
--- trunk/src/jar/resolver/java/org/mulgara/resolver/StringPoolSessionFactory.java 2008-08-23 01:59:26 UTC (rev 1166)
+++ trunk/src/jar/resolver/java/org/mulgara/resolver/StringPoolSessionFactory.java 2008-08-23 02:00:05 UTC (rev 1167)
@@ -42,6 +42,7 @@
import org.mulgara.query.*;
import org.mulgara.query.rdf.*;
import org.mulgara.resolver.spi.*;
+import org.mulgara.store.StoreException;
import org.mulgara.store.nodepool.NodePoolException;
import org.mulgara.store.nodepool.NodePoolFactory;
import org.mulgara.store.stringpool.StringPoolException;
@@ -266,14 +267,14 @@
// Node pool
try {
persistentNodePool.close();
- } catch (NodePoolException e) {
+ } catch (StoreException e) {
logger.error("Unable to close node pool", e);
}
// String pool
try {
persistentStringPool.close();
- } catch (StringPoolException e) {
+ } catch (StoreException e) {
logger.error("Unable to close string pool", e);
}
}
@@ -283,14 +284,14 @@
// Node pool
try {
persistentNodePool.delete();
- } catch (NodePoolException e) {
+ } catch (StoreException e) {
logger.error("Unable to delete node pool", e);
}
// String pool
try {
persistentStringPool.delete();
- } catch (StringPoolException e) {
+ } catch (StoreException e) {
logger.error("Unable to delete string pool", e);
}
}
More information about the Mulgara-svn
mailing list