HHH-13666 Throw a HibernateException with a more appropriate message upon beforeTransactionCompletion/afterTransactionCompletion failure

This commit is contained in:
Yoann Rodière 2019-10-15 15:04:13 +02:00 committed by Guillaume Smet
parent 250f569339
commit f9c149ab0d
1 changed files with 2 additions and 2 deletions

View File

@ -957,7 +957,7 @@ public class ActionQueue {
throw he;
}
catch (Exception e) {
throw new AssertionFailure( "Unable to perform beforeTransactionCompletion callback", e );
throw new HibernateException( "Unable to perform beforeTransactionCompletion callback", e );
}
}
}
@ -987,7 +987,7 @@ public class ActionQueue {
// continue loop
}
catch (Exception e) {
throw new AssertionFailure( "Exception releasing cache locks", e );
throw new HibernateException( "Unable to perform afterTransactionCompletion callback", e );
}
}