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

View File

@ -2251,7 +2251,7 @@ RootClass getRootClassMapping(String clazz) throws MappingException {
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 );
}
}