Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

HibernateAccessor.ConvertAdoAccessException(Exception) Method

Converts the ADO.NET access exception to an appropriate exception from the

org.springframework.dao
hierarchy. Can be overridden in subclasses.

[Visual Basic]
Protected Overridable Overloads Sub ConvertAdoAccessException( _
   ByVal ex As Exception _
)
[C#]
protected virtual DataAccessException ConvertAdoAccessException(
   Exception ex
);

Parameters

ex
The ADO.NET exception.

Return Value

The corresponding DataAccessException instance

Remarks

Note    Note that a direct SQLException can just occur when callback code performs direct ADO.NET access via
ISession.Connection()
.

See Also

HibernateAccessor Class | Spring.Data.NHibernate Namespace | HibernateAccessor.ConvertAdoAccessException Overload List