diff --git a/hibernate-core/src/main/java/org/hibernate/proxy/pojo/bytebuddy/ByteBuddyInterceptor.java b/hibernate-core/src/main/java/org/hibernate/proxy/pojo/bytebuddy/ByteBuddyInterceptor.java index a5166fdc98..a100367baf 100644 --- a/hibernate-core/src/main/java/org/hibernate/proxy/pojo/bytebuddy/ByteBuddyInterceptor.java +++ b/hibernate-core/src/main/java/org/hibernate/proxy/pojo/bytebuddy/ByteBuddyInterceptor.java @@ -52,7 +52,7 @@ public class ByteBuddyInterceptor extends BasicLazyInitializer implements ProxyC result = this.invoke( thisMethod, args, proxy ); } catch (Throwable t) { - throw new Exception( t.getCause() ); + throw t instanceof RuntimeException ? t : new Exception( t.getCause() ); } if ( result == INVOKE_IMPLEMENTATION ) { Object target = getImplementation();