Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

LocalSessionFactoryObject.AdoExceptionTranslator Property

Set the ADO.NET exception translator for this instance. Applied to System.Data.Common.DbException (or provider specific exception type in .NET 1.1) thrown by callback code, be it direct DbException or wrapped Hibernate ADOExceptions.

The default exception translator is either a ErrorCodeExceptionTranslator if a DbProvider is available, or a FalbackExceptionTranslator otherwise

[Visual Basic]
Public Overridable Property AdoExceptionTranslator() As IAdoExceptionTranslator
   Public Get
   End Get
   Public Set
   End Set
End Property
[C#]
public virtual IAdoExceptionTranslator AdoExceptionTranslator { public get; public set; }

Property Value

The ADO exception translator.

See Also

LocalSessionFactoryObject Class | Spring.Data.NHibernate Namespace