vgritsenko 2004/05/17 09:15:18
Modified: src/blocks/xmldb/java/org/apache/cocoon/components/source/impl
XMLDBSourceFactory.java
Log:
minor changes to the error message
Revision Changes Path
1.9 +10 -10
cocoon-2.1/src/blocks/xmldb/java/org/apache/cocoon/components/source/impl/XMLDBSourceFactory.java
Index: XMLDBSourceFactory.java
===================================================================
RCS file:
/home/cvs/cocoon-2.1/src/blocks/xmldb/java/org/apache/cocoon/components/source/impl/XMLDBSourceFactory.java,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -r1.8 -r1.9
--- XMLDBSourceFactory.java 19 Apr 2004 14:53:50 -0000 1.8
+++ XMLDBSourceFactory.java 17 May 2004 16:15:18 -0000 1.9
@@ -95,17 +95,17 @@
DatabaseManager.registerDatabase(db);
- } catch (XMLDBException xde) {
- String error = "Unable to connect to the XMLDB database.
Error "
- + xde.errorCode + ": " + xde.getMessage();
- getLogger().debug(error, xde);
- throw new ConfigurationException(error, xde);
+ } catch (XMLDBException e) {
+ String msg = "Unable to connect to the XMLDB database '" +
type + "'." +
+ " Error " + e.errorCode + ": " + e.getMessage();
+ getLogger().debug(msg, e);
+ throw new ConfigurationException(msg, e);
} catch (Exception e) {
- getLogger().warn("There was a problem setting up the
connection. "
- + "Make sure that your driver is
available");
- throw new ConfigurationException("Problem setting up the
connection to XML:DB: "
- + e.getMessage(), e);
+ String msg = "Unable to load XMLDB database driver '" +
driver + "'." +
+ " Make sure that the driver is available.
Error: " + e.getMessage();
+ getLogger().debug(msg, e);
+ throw new ConfigurationException(msg, e);
}
}
}