-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: how to throw user exception in hibernate interceptor?
PostPosted: Mon Sep 28, 2009 6:52 am 
Regular
Regular

Joined: Tue Feb 17, 2009 5:13 am
Posts: 59
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!


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.