FireDAC.Phys.MySQLWrapper.TFDMySQLError

From RAD Studio API Documentation
Jump to: navigation, search

FireDAC.Stan.Error.TFDDBErrorSystem.TObjectTFDMySQLError

Delphi

TFDMySQLError = class(TFDDBError)

C++

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

Properties

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

Description

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

FireDAC.Phys.MySQLWrapper.TFDMySQLError 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