Converts the given SQLException into NHibernate's ADOException hierarchy, as well as performing appropriate logging.

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

Syntax

Visual Basic (Declaration)
Public Shared Function Convert ( _
	sqlException As Exception, _
	message As String _
) As ADOException
C#
public static ADOException Convert(
	Exception sqlException,
	string message
)
Visual C++
public:
static ADOException^ Convert(
	Exception^ sqlException, 
	String^ message
)
JavaScript
NHibernate.Exceptions.ADOExceptionHelper.convert = function(sqlException, message);

Parameters

sqlException
Type: System..::.Exception
The exception to convert.
message
Type: System..::.String
An optional error message.

Return Value

The converted ADOException.

See Also