Author: steve.ebersole(a)jboss.com
Date: 2009-11-12 23:26:57 -0500 (Thu, 12 Nov 2009)
New Revision: 17968
Modified:
core/trunk/core/src/main/java/org/hibernate/cfg/Configuration.java
Log:
HHH-4569 - Split focus of ConfigurationPerformanceTest
Modified: core/trunk/core/src/main/java/org/hibernate/cfg/Configuration.java
===================================================================
--- core/trunk/core/src/main/java/org/hibernate/cfg/Configuration.java 2009-11-12 20:52:13
UTC (rev 17967)
+++ core/trunk/core/src/main/java/org/hibernate/cfg/Configuration.java 2009-11-13 04:26:57
UTC (rev 17968)
@@ -445,7 +445,7 @@
try {
org.dom4j.Document doc = xmlHelper.createSAXReader( xmlFile.getAbsolutePath(), errors,
entityResolver ).read( xmlFile );
if ( errors.size() != 0 ) {
- throw new MappingException( "invalid mapping", ( Throwable ) errors.get( 0
) );
+ throw new InvalidMappingException( "file", xmlFile.toString(), (Throwable)
errors.get(0) );
}
try {
@@ -461,8 +461,8 @@
add( doc );
}
- catch( DocumentException e){
- throw new MappingException( "invalid mapping", e );
+ catch (DocumentException e) {
+ throw new InvalidMappingException( "file", xmlFile.toString(), e );
}
return this;
Show replies by date