From RAD Studio API Documentation
Jump to: navigation, search


property ErrorCode: Integer read FErrorCode;


__property int ErrorCode = {read=FErrorCode, nodefault};


Type Visibility Source Unit Parent
property public
Data.DB EUpdateError


Indicates the error code that this exception represents.

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 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.

See Also