FireDAC.Phys.PGWrapper.TFDPgError.ErrorCode
Delphi
property ErrorCode: String read FErrorCode;
C++
__property System::UnicodeString ErrorCode = {read=FErrorCode};
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
property | public | FireDAC.Phys.PGWrapper.pas FireDAC.Phys.PGWrapper.hpp |
FireDAC.Phys.PGWrapper | TFDPgError |
Description
Returns a DBMS-specific error code.
FireDAC.Phys.PGWrapper.TFDPgError.ErrorCode inherits from FireDAC.Stan.Error.TFDDBError.ErrorCode. All content below this line refers to FireDAC.Stan.Error.TFDDBError.ErrorCode.
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.