Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

HibernateTemplate.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 Overrides Property AdoExceptionTranslator() As IAdoExceptionTranslator
   Public Get
   End Get
   Public Set
   End Set
End Property
[C#]
public override IAdoExceptionTranslator AdoExceptionTranslator { public get; public set; }

Property Value

The ADO exception translator.

See Also

HibernateTemplate Class | Spring.Data.NHibernate.Generic Namespace