HHH-5065 improved exception message on Configuration#getRootClassMapping

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

View File

@ -2251,7 +2251,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 );
}
}