beatles1692
08-30-2006, 07:22 AM
Hi
First,I should say that I'm really impressed by nhibernate integration.
Thank you.
I wrote a small test application framework using nhibernate integration.
it's working fine.But when an exception is thrown , instead of getting that exception I get a Null Reference exception (as far as I realized that's because there's no ado exception translator attached to my HibernateTemplate)
Then I have two questions to ask:
A)Is there any default adoExceptionTranslator that I can use?Or should I write my own ( I mean is there any translator that performs no translation at all and gives me the original exception ?)
B)What are the best practices for implementing exception handling ?
First,I should say that I'm really impressed by nhibernate integration.
Thank you.
I wrote a small test application framework using nhibernate integration.
it's working fine.But when an exception is thrown , instead of getting that exception I get a Null Reference exception (as far as I realized that's because there's no ado exception translator attached to my HibernateTemplate)
Then I have two questions to ask:
A)Is there any default adoExceptionTranslator that I can use?Or should I write my own ( I mean is there any translator that performs no translation at all and gives me the original exception ?)
B)What are the best practices for implementing exception handling ?