Click or drag to resize
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.Engine
Assembly: Activsoft.Engine (in Activsoft.Engine.dll) Version: 6.0.0.0
Syntax
public bool ExplainException(
	DbException ex,
	out string code,
	out string message
)

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: Boolean
true if the exception could be interpreted, else false

Implements

IDatabaseAbstracterExplainException(DbException, String, String)
See Also