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 _
)
[C#]
protected virtual DataAccessException ConvertAdoAccessException(
   ADOException ex,
   IAdoExceptionTranslator translator
);

Parameters

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

Return Value

The corresponding DataAccessException instance

See Also

HibernateTransactionManager Class | Spring.Data.NHibernate Namespace