RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
EUpdateError.ErrorCode Property

Indicates the error code that this exception represents.

Pascal
property ErrorCode: Integer;
C++
__property int ErrorCode;

EUpdateError objects represent exceptions that occur when updating records. These exceptions can be generated in response to error codes from the data access mechanism (such as the BDE or ADO) or by other exceptions that are caught by resolver components. If the update error represents an error code returned by the data access mechanism, ErrorCode is that error code. Otherwise, ErrorCode is 0.

Note: DBExpress does not return error codes. This property merely provides a mechanism for using custom data-access components that generate error codes rather than exceptions.
Note: If ErrorCode is 0, use the OriginalException property, which provides access to the exception that was caught.
 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!