Data.DB.EUpdateError.ErrorCode

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property ErrorCode: Integer read FErrorCode;

C++

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

Properties

Type Visibility Source Unit Parent
property public
Data.DB.pas
Data.DB.hpp
Data.DB EUpdateError

Description

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