Author: steve.ebersole(a)jboss.com
Date: 2009-11-12 23:27:35 -0500 (Thu, 12 Nov 2009)
New Revision: 17969
Modified:
core/branches/Branch_3_3/core/src/main/java/org/hibernate/cfg/Configuration.java
Log:
HHH-4569 - Split focus of ConfigurationPerformanceTest
Modified:
core/branches/Branch_3_3/core/src/main/java/org/hibernate/cfg/Configuration.java
===================================================================
---
core/branches/Branch_3_3/core/src/main/java/org/hibernate/cfg/Configuration.java 2009-11-13
04:26:57 UTC (rev 17968)
+++
core/branches/Branch_3_3/core/src/main/java/org/hibernate/cfg/Configuration.java 2009-11-13
04:27:35 UTC (rev 17969)
@@ -405,7 +405,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 {
@@ -422,7 +422,7 @@
add( doc );
}
catch( DocumentException e){
- throw new MappingException( "invalid mapping", e );
+ throw new InvalidMappingException( "file", xmlFile.toString(), e );
}
return this;