FireDAC.Phys.PGWrapper.TFDPgError

From RAD Studio API Documentation
Jump to: navigation, search

FireDAC.Stan.Error.TFDDBErrorSystem.TObjectTFDPgError

Delphi

TFDPgError = class(TFDDBError)

C++

class PASCALIMPLEMENTATION TFDPgError : public Firedac::Stan::Error::TFDDBError

Properties

Type Visibility Source Unit Parent
class public
FireDAC.Phys.PGWrapper.pas
FireDAC.Phys.PGWrapper.hpp
FireDAC.Phys.PGWrapper FireDAC.Phys.PGWrapper

Description

TFDDBError represents FireDAC/DBMS errors, warnings, and messages for the EFDDBEngineException exception class.

FireDAC.Phys.PGWrapper.TFDPgError inherits from FireDAC.Stan.Error.TFDDBError. All content below this line refers to FireDAC.Stan.Error.TFDDBError.


TFDDBError represents FireDAC/DBMS errors, warnings, and messages for the EFDDBEngineException exception class.

The TFDDBError object is a container for the information pertaining to a database error, warning or message. One or more TFDDBError objects are contained in the Errors property of the EFDDBEngineException object. 

Each item is represented by the:

  • Message - Actual error message. For the DBMS messages only Message property is used.
  • ErrorCode - DBMS-specific error code.
  • Kind - DBMS-independent error code and other properties.
  • RowIndex - Index of failed rows in an Array DML operation, etc.

Some of the FireDAC drivers are implementing their own TFDDBError descendant classes. For example, Microsoft SQL Server driver implements the TFDMSSQLError class with four additional properties.

See Also