Build an instance of the ISQLExceptionConverter preferred by this dialect for
converting DbException into NHibernate's ADOException hierarchy.
Namespace: NHibernate.DialectAssembly: NHibernate (in NHibernate.dll) Version: 3.2.0.4000 (3.2.0.4000)
Syntax
C# |
---|
public virtual ISQLExceptionConverter BuildSQLExceptionConverter() |
Visual Basic |
---|
Public Overridable Function BuildSQLExceptionConverter As ISQLExceptionConverter |
Visual C++ |
---|
public: virtual ISQLExceptionConverter^ BuildSQLExceptionConverter() |
Return Value
The Dialect's preferred ISQLExceptionConverter.Remarks
The default Dialect implementation simply returns a converter based on X/Open SQLState codes.
It is strongly recommended that specific Dialect implementations override this
method, since interpretation of a SQL error is much more accurate when based on
the ErrorCode rather than the SQLState. Unfortunately, the ErrorCode is a vendor-specific approach.