don't throw away the cause of an exception
This commit is contained in:
parent
99da69fdc1
commit
ade28621c2
|
@ -766,7 +766,7 @@ public class SessionImpl
|
||||||
.fireEventOnEachListener( event, PersistEventListener::onPersist );
|
.fireEventOnEachListener( event, PersistEventListener::onPersist );
|
||||||
}
|
}
|
||||||
catch (MappingException e) {
|
catch (MappingException e) {
|
||||||
originalException = getExceptionConverter().convert( new IllegalArgumentException( e.getMessage() ) );
|
originalException = getExceptionConverter().convert( new IllegalArgumentException( e.getMessage(), e ) );
|
||||||
}
|
}
|
||||||
catch (RuntimeException e) {
|
catch (RuntimeException e) {
|
||||||
originalException = getExceptionConverter().convert( e );
|
originalException = getExceptionConverter().convert( e );
|
||||||
|
|
Loading…
Reference in New Issue