Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

IAdoExceptionTranslator.Translate Method

Translate the given SystemException into a generic data access exception.

[Visual Basic]
Public Sub Translate( _
   ByVal task As String, _
   ByVal sql As String, _
   ByVal exception As Exception _
)
[C#]
DataAccessException Translate(
   string task,
   string sql,
   Exception exception
);

Parameters

task
A readable string describing the task being attempted.
sql
The SQL query or update that caused the problem. May be null.
exception
The Exception encountered by the ADO.NET implementation.

Return Value

A DataAccessException appropriate for the supplied exception.

See Also

IAdoExceptionTranslator Interface | Spring.Data.Support Namespace