Don't know if it is what you're after, but there is the SQL Exception Converter:
http://fabiomaulo.blogspot.com/2009/06/improving-ado-exception-management-in.html On Sep 6, 12:57 pm, Jason Meckley <[email protected]> wrote: > there is some sort of exception handling/override feature within NH that you > can implement. It's not a well known feature, and i don't know that much > about it. I've heard it mentioned before though. I think what it does is > allows you to wrap specific exceptions with your own exception type. you can > then catch this exception type in your code and handle the situation > accordingly. > > typically exceptions are handled like this: > using(var tx = session.BeginTransaction()) > try > { > do work > tx.Commit();} > > catch (MyException) > { > tx.Rollback(); > retry logic, or something else you may want to do.} > > catch > { > tx.Rollback(); > throw; > > > > > > > > } -- You received this message because you are subscribed to the Google Groups "nhusers" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/nhusers?hl=en.
