| ConfigExplainException Method |
Database errors are not consistent across providers; error codes and error messages are always provider dependent.
This method extracts the the error code number and message from the given DbException.
Namespace: Activsoft.EngineAssembly: Activsoft.Engine (in Activsoft.Engine.dll) Version: 6.0.0.0
Syntaxpublic bool ExplainException(
DbException ex,
out string code,
out string message
)
Public 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
) sealed
abstract ExplainException :
ex : DbException *
code : string byref *
message : string byref -> bool
override 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