-->
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.  [ 2 posts ] 
Author Message
 Post subject: Logging and throwing exception
PostPosted: Tue Aug 11, 2009 9:10 am 
Newbie

Joined: Tue Sep 16, 2008 4:52 am
Posts: 4
In AbstractFlushingEventListener* a HibernateException is caught, logged and then thrown again.
I would be nice if such exception handling could be avoided.

I have no way to hide the error message from our customers, when done this way. I could filter the messages out from this log, but I can't be sure that our customers do the same. And in that case they will see the log and think something is wrong, though the exception is caught and handlede properly in the code.

If you need to log the exception, then please use the debug method that only takes a String as parameter. Then the stacktrace will not appear more times in the log.

* http://fisheye.jboss.org/browse/Hiberna ... 11588#l301


Top
 Profile  
 
 Post subject: Re: Logging and throwing exception
PostPosted: Thu Aug 13, 2009 2:57 am 
Newbie

Joined: Tue Sep 16, 2008 4:52 am
Posts: 4
Found a bug report here:
http://opensource.atlassian.com/project ... e/HHH-2971


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

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.