Converts the given SQLException into Exception hierarchy, as well as performing
appropriate logging.
Namespace: NHibernate.ExceptionsAssembly: 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 ) |
Visual Basic |
---|
Public Shared Function Convert ( _ converter As ISQLExceptionConverter, _ sqlException As Exception, _ message As String _ ) As Exception |
Visual C++ |
---|
public: static Exception^ Convert( ISQLExceptionConverter^ converter, Exception^ sqlException, String^ message ) |
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.