Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

LocalSessionFactoryObject.ConvertHibernateException Method

Convert the given HibernateException to an appropriate exception from the Spring's DAO Exception hierarchy. Will automatically apply a specified IAdoExceptionTranslator to a Hibernate ADOException, else rely on Hibernate's default translation.

[Visual Basic]
Protected Overridable Sub ConvertHibernateException( _
   ByVal ex As HibernateException _
protected virtual DataAccessException ConvertHibernateException(
   HibernateException ex


The Hibernate exception that occured.

Return Value

A corresponding DataAccessException

See Also

LocalSessionFactoryObject Class | Spring.Data.NHibernate Namespace