Converts the given SQLException into Exception hierarchy, as well as performing appropriate logging.

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

Syntax

C#
public static Exception Convert(
	ISQLExceptionConverter converter,
	Exception sqlException,
	string message,
	SqlString sql
)
Visual Basic
Public Shared Function Convert ( _
	converter As ISQLExceptionConverter, _
	sqlException As Exception, _
	message As String, _
	sql As SqlString _
) As Exception
Visual C++
public:
static Exception^ Convert(
	ISQLExceptionConverter^ converter, 
	Exception^ sqlException, 
	String^ message, 
	SqlString^ sql
)

Parameters

converter
Type: NHibernate.Exceptions..::..ISQLExceptionConverter
The converter to use.
sqlException
Type: System..::..Exception
The exception to convert.
message
Type: System..::..String
An optional error message.
sql
Type: NHibernate.SqlCommand..::..SqlString
The SQL executed.

Return Value

The converted ADOException.

See Also