Hi all.
I need to throw an user exception (UserException) in a particular case. This situation is verified in a Hibernte Interceptor's onSave and onFlushDirty methods.
The problem is that I am receiving an UndeclaredThrowableException -> InvocationException -> UserException, that is, my exception encapsulated into an InvocationException, encapsulated into an UndeclaredThrowableException. I would like to receive my exception with no encapsulation. Is it possible? How?
Thanks.
_________________ Born to lose... live to win!
|