| AbstractDatabaseAbstracterExplainException Method |
Database errors are not consistent across providers; error codes and error messages are always provider dependent.
If you derive from this class, you must implement this method by casting the DbException to the provider specific exception and extracting the error code number and message.
Namespace: Activsoft.Engine.DbAssembly: Activsoft.Engine (in Activsoft.Engine.dll) Version: 6.0.0.0
Syntaxpublic abstract bool ExplainException(
DbException ex,
out string code,
out string message
)
Public MustOverride Function ExplainException (
ex As DbException,
<OutAttribute> ByRef code As String,
<OutAttribute> ByRef message As String
) As Boolean
public:
virtual bool ExplainException(
DbException^ ex,
[OutAttribute] String^% code,
[OutAttribute] String^% message
) abstract
abstract ExplainException :
ex : DbException *
code : string byref *
message : string byref -> bool
Parameters
- ex
- Type: System.Data.CommonDbException
The exception to be analyzed - code
- Type: SystemString
The error code returned by the database provider - message
- Type: SystemString
The message returned by the database provider
Return Value
Type:
Booleantrue if the exception could be interpreted, else false
Implements
IDatabaseAbstracterExplainException(DbException, String, String)
See Also