HHH-18181 Include property and class for PropertyBinder errors

This commit is contained in:
Ken Schosinsky 2024-05-29 17:16:10 +02:00 committed by Steve Ebersole
parent e1051c26d0
commit 475e780da1
1 changed files with 3 additions and 2 deletions

View File

@ -305,8 +305,9 @@ public class PropertyBinder {
binder.bind( metaAnnotatedTarget, buildingContext, persistentClass, property );
}
catch ( Exception e ) {
throw new AnnotationException( "error processing @AttributeBinderType annotation '" +
metaAnnotatedDescriptor.getAnnotationType().getName() + "'", e );
throw new AnnotationException( "error processing @AttributeBinderType annotation '"
+ metaAnnotatedDescriptor.getAnnotationType().getName() + "' for property "
+ qualify( holder.getPath(), name ), e );
}
}
}