From: Michael D. <mik...@us...> - 2005-01-23 15:54:01
|
Update of /cvsroot/nhibernate/nhibernate/src/NHibernate/Impl In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv19159/Impl Modified Files: BatcherImpl.cs Log Message: changed excpetion caught to the one msdn documents Prepare will throw. Changed exception thrown to ADOException instead of ApplicationException. Index: BatcherImpl.cs =================================================================== RCS file: /cvsroot/nhibernate/nhibernate/src/NHibernate/Impl/BatcherImpl.cs,v retrieving revision 1.14 retrieving revision 1.15 diff -C2 -d -r1.14 -r1.15 *** BatcherImpl.cs 31 Dec 2004 19:50:33 -0000 1.14 --- BatcherImpl.cs 23 Jan 2005 15:53:52 -0000 1.15 *************** *** 131,139 **** } } ! catch( Exception e ) { ! throw new ApplicationException( "While preparing " + command.CommandText + " an error occurred" ! , e ); } } --- 131,139 ---- } } ! catch( InvalidOperationException ioe ) { ! throw new ADOException( "While preparing " + command.CommandText + " an error occurred" ! , ioe ); } } |