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 view this discussion on the web visit 
https://groups.google.com/d/msg/nhusers/-/5fjzeyVSzQ4J.
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.

Reply via email to