FireDAC.Stan.Error.TFDDBError.ErrorCode

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property ErrorCode: Integer read FErrorCode write FErrorCode;

C++

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

Properties

Type Visibility Source Unit Parent
property public
FireDAC.Stan.Error.pas
FireDAC.Stan.Error.hpp
FireDAC.Stan.Error TFDDBError

Description

Returns a DBMS-specific error code.

Use the ErrorCode property to read a DBMS-specific error code. For example, for the Oracle ORA-00942 "Table or view does not exist" error, ErrorCode is equal to 942.

Also, you can use the Kind property value to use a DBMS-independent error kind. Note that Kind is much more limited in the error condition description than ErrorCode.

See Also