Build a SQLExceptionConverter instance.
Namespace: NHibernate.ExceptionsAssembly: NHibernate (in NHibernate.dll) Version: 3.2.0.4000 (3.2.0.4000)
Syntax
C# |
---|
public static ISQLExceptionConverter BuildSQLExceptionConverter( Dialect dialect, IDictionary<string, string> properties ) |
Visual Basic |
---|
Public Shared Function BuildSQLExceptionConverter ( _ dialect As Dialect, _ properties As IDictionary(Of String, String) _ ) As ISQLExceptionConverter |
Visual C++ |
---|
public: static ISQLExceptionConverter^ BuildSQLExceptionConverter( Dialect^ dialect, IDictionary<String^, String^>^ properties ) |
Parameters
- dialect
- Type: NHibernate.Dialect..::..Dialect
The defined dialect.
- properties
- Type: System.Collections.Generic..::..IDictionary<(Of <(<'String, String>)>)>
The configuration properties.
Return Value
An appropriate ISQLExceptionConverter instance.Remarks
First, looks for a SqlExceptionConverter property to see
if the configuration specified the class of a specific converter to use. If this
property is set, attempt to construct an instance of that class. If not set, or
if construction fails, the converter specific to the dialect will be used.