AnyDAC
ContentsIndexHome
PreviousUpNext
TADDBError Class

TADDBError represents AnyDAC / DBMS errors, warnings and messages for the EADDBEngineException exception class.

Group
Class Hierarchy
uADStanError_TADDBError
File

uADStanError

Links

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

Each item is represented by the:

  • Message - actually 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 row in an Array DML operation, etc.

Some of the AnyDAC drivers are implementing own TADDBError descendant classes. For example, Microsoft SQL Server driver implements TADMSSQLError class with four additional properties.

TADDBError = class(TObject);
What do you think about this topic? Send feedback!