HHH-4569 - Split focus of ConfigurationPerformanceTest

git-svn-id: https://svn.jboss.org/repos/hibernate/core/trunk@17968 1b8cb986-b30d-0410-93ca-fae66ebed9b2
This commit is contained in:
Steve Ebersole 2009-11-13 04:26:57 +00:00
parent d558dac5dc
commit 5a2caea959
1 changed files with 3 additions and 3 deletions

View File

@ -445,7 +445,7 @@ public class Configuration implements Serializable {
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 @@ public class Configuration implements Serializable {
add( doc );
}
catch( DocumentException e){
throw new MappingException( "invalid mapping", e );
catch (DocumentException e) {
throw new InvalidMappingException( "file", xmlFile.toString(), e );
}
return this;