For the given Exception, locates the DbException.

Namespace: NHibernate.Exceptions
Assembly: NHibernate (in NHibernate.dll) Version: 3.2.0.4000 (3.2.0.4000)

Syntax

C#
public static DbException ExtractDbException(
	Exception sqlException
)
Visual Basic
Public Shared Function ExtractDbException ( _
	sqlException As Exception _
) As DbException
Visual C++
public:
static DbException^ ExtractDbException(
	Exception^ sqlException
)

Parameters

sqlException
Type: System..::..Exception
The exception from which to extract the DbException

Return Value

The DbException, or null.

See Also