FireDAC.Phys.ODBCWrapper.TFDODBCNativeError

From RAD Studio API Documentation
Jump to: navigation, search

FireDAC.Stan.Error.TFDDBErrorSystem.TObjectTFDODBCNativeError

Delphi

TFDODBCNativeError = class(TFDDBError)

C++

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

Properties

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

Description

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

FireDAC.Phys.ODBCWrapper.TFDODBCNativeError 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