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: NHibernate doesn't show much information about errors
PostPosted: Wed Oct 04, 2006 7:12 am 
Regular
Regular

Joined: Mon Oct 02, 2006 12:03 pm
Posts: 62
I've noticed that when NHibernate throws an exception it doesn't show much information about the error.

Is it possible to configure NHibernate in order to show more aditional information?

for example -->

Code:
try
         {
            this.session.Save(user);
         }
         catch (Exception ex)
         {
            Console.WriteLine(ex.Message);
         }

In this code ex.Message only is:

Quote:
Could not save object


In other cases NHibernate has showed me

Quote:
Can not open connection


Thanks in advanced


Top
 Profile  
 
 Post subject:
PostPosted: Wed Oct 04, 2006 10:24 am 
Expert
Expert

Joined: Tue Aug 23, 2005 5:52 am
Posts: 335
Check the InnerException property of the exceptions you are receiving.

Cheers,

Symon.


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.