HHH-5065 improved exception message on Configuration#getRootClassMapping

This commit is contained in:
Brett Meyer 2013-11-27 21:20:39 -05:00
parent bb53193a75
commit d430846076
1 changed files with 1 additions and 1 deletions

View File

@ -2330,7 +2330,7 @@ public class Configuration implements Serializable {
return (RootClass) getClassMapping( clazz );
}
catch (ClassCastException cce) {
throw new MappingException( "You may only specify a cache for root <class> mappings" );
throw new MappingException( "You may only specify a cache for root <class> mappings. Attempted on " + clazz );
}
}