HHH-13666 Re-use the wrapped exception's message upon beforeTransactionCompletion/afterTransactionCompletion failure
For convenience.
This commit is contained in:
parent
f9c149ab0d
commit
5c8169ba7c
|
@ -957,7 +957,7 @@ public class ActionQueue {
|
||||||
throw he;
|
throw he;
|
||||||
}
|
}
|
||||||
catch (Exception e) {
|
catch (Exception e) {
|
||||||
throw new HibernateException( "Unable to perform beforeTransactionCompletion callback", e );
|
throw new HibernateException( "Unable to perform beforeTransactionCompletion callback: " + e.getMessage(), e );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -987,7 +987,7 @@ public class ActionQueue {
|
||||||
// continue loop
|
// continue loop
|
||||||
}
|
}
|
||||||
catch (Exception e) {
|
catch (Exception e) {
|
||||||
throw new HibernateException( "Unable to perform afterTransactionCompletion callback", e );
|
throw new HibernateException( "Unable to perform afterTransactionCompletion callback: " + e.getMessage(), e );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue