From 5a2caea95928df8a84ed6e6153da02659edf1726 Mon Sep 17 00:00:00 2001 From: Steve Ebersole Date: Fri, 13 Nov 2009 04:26:57 +0000 Subject: [PATCH] HHH-4569 - Split focus of ConfigurationPerformanceTest git-svn-id: https://svn.jboss.org/repos/hibernate/core/trunk@17968 1b8cb986-b30d-0410-93ca-fae66ebed9b2 --- core/src/main/java/org/hibernate/cfg/Configuration.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/core/src/main/java/org/hibernate/cfg/Configuration.java b/core/src/main/java/org/hibernate/cfg/Configuration.java index 72dc40f97d..bf90f73d12 100644 --- a/core/src/main/java/org/hibernate/cfg/Configuration.java +++ b/core/src/main/java/org/hibernate/cfg/Configuration.java @@ -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;