Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

HibernateTransactionManager.ConvertAdoAccessException Method

Convert the given ADOException to an appropriate exception from the the Spring.Dao hierarchy. Can be overridden in subclasses.

[Visual Basic]
Protected Overridable Sub ConvertAdoAccessException( _
   ByVal ex As ADOException, _
   ByVal translator As IAdoExceptionTranslator _
protected virtual DataAccessException ConvertAdoAccessException(
   ADOException ex,
   IAdoExceptionTranslator translator


The ADOException that occured, wrapping the underlying ADO.NET thrown exception.
The translator to convert hibernate ADOExceptions.

Return Value

The corresponding DataAccessException instance

See Also

HibernateTransactionManager Class | Spring.Data.NHibernate Namespace