HHH-13666 Throw a HibernateException with a more appropriate message upon beforeTransactionCompletion/afterTransactionCompletion failure
This commit is contained in:
parent
250f569339
commit
f9c149ab0d
|
@ -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 );
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue