-->
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: HibernateException in Hibernate 3
PostPosted: Fri Jan 21, 2005 4:31 am 
Newbie

Joined: Tue Jan 18, 2005 11:13 pm
Posts: 19
Why is the HibernateException in Hibernate 3 a RuntimeException? It's strange to me that a failure to persist an object does not lead to a checked exception, forcing the client to handle the error. Does anyone else find this to be a problem?


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jan 21, 2005 5:22 am 
Hibernate Team
Hibernate Team

Joined: Mon Aug 25, 2003 9:11 pm
Posts: 4592
Location: Switzerland
It's a fatal exception, there is no point in forcing you to catch it, because all you can do is clean up and exit. Do this at the top of your call stack instead of in every method. Read the discussions in the Java community to understand this reasoning.


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.