One can read in the NHibernate manual:
Quote:
If the ISession throws an exception you should immediately rollback the transaction, call ISession.Close() and discard the ISession instance. Certain methods of ISession will not leave the session in a consistent state.
Now, my question is as in the topic: what is the ISession exception exactly? How do I distinguish it from other NHibernate exceptions that probably do not need session dismission.
For example if I catch NHibernate.ADOException do I have to close the current session or can I just handle this exception according to my needs and keep on doing my job without closing everything?
Thanks in advance,
Marcin