Java Mailing List Archive

http://www.gg3721.com/

Home » the NHibernate development list »

[NHibernate-development] DbException vs Exception

Fabio Maulo

2008-03-16

Replies: Find Java Web Hosting

Author LoginPost Reply
So far, in our ADO iteration, we are catching "Exception" and pass the exception to ADOExceptionHelper.Convert .

I would like to change it, catching the more specific "DbException".
About DbException the documentation say :

The DbException class is an abstract class used as the base class for provider-specific exception class implementations.

I would like to catch DbException instead Exception.
Objection ?

Do we have some dialect for a data-provider that no throw exceptions inherited from DbException ?

Thanks.
Fabio Maulo
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Nhibernate-development mailing list
Nhibernate-development@(protected)
https://lists.sourceforge.net/lists/listinfo/nhibernate-development
©2008 gg3721.com - Jax Systems, LLC, U.S.A.