Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

SessionFactoryUtils.ConvertHibernateAccessException Method

Convert the given HibernateException to an appropriate exception from the

Spring.Dao
hierarchy. Note that it is advisable to handle AdoException specifically by using a AdoExceptionTranslator for the underlying ADO.NET exception.

[Visual Basic]
Public Shared Sub ConvertHibernateAccessException( _
   ByVal ex As HibernateException _
)
[C#]
public static DataAccessException ConvertHibernateAccessException(
   HibernateException ex
);

Parameters

ex
The Hibernate exception that occured.

Return Value

DataAccessException instance

See Also

SessionFactoryUtils Class | Spring.Data.NHibernate Namespace