FireDAC.Phys.Infx.EInfxNativeException

From RAD Studio API Documentation

EInfxNativeExceptionFireDAC.Phys.ODBCWrapper.EODBCNativeExceptionFireDAC.Stan.Error.EFDDBEngineExceptionFireDAC.Stan.Error.EFDExceptionData.DB.EDatabaseErrorSystem.SysUtils.ExceptionSystem.TObject

Delphi

EInfxNativeException = class(EODBCNativeException)

C++

class PASCALIMPLEMENTATION EInfxNativeException : public Firedac::Phys::Odbcwrapper::EODBCNativeException

Properties

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

Description

EDBEngineException is the base exception class for all FireDAC DBMS related errors. {{#multireplace:FireDAC.Phys.Infx.EInfxNativeException|H21=!|H25=%|H28=(|H29=)|H2A=*|H2B=+|H2F=/|H3C=<|H3D==|H3E=>|H5B=[|H5D=]|H5E=^|H7C=|}} inherits from {{#multireplace:FireDAC.Stan.Error.EFDDBEngineException|H21=!|H25=%|H28=(|H29=)|H2A=*|H2B=+|H2F=/|H3C=<|H3D==|H3E=>|H5B=[|H5D=]|H5E=^|H7C=|}}. All content below this line refers to {{#multireplace:FireDAC.Stan.Error.EFDDBEngineException|H21=!|H25=%|H28=(|H29=)|H2A=*|H2B=+|H2F=/|H3C=<|H3D==|H3E=>|H5B=[|H5D=]|H5E=^|H7C=|}}.


EDBEngineException is the base exception class for all FireDAC DBMS related errors.

An EDBEngineException object is used as:

  • An exception object, raised when a DBMS operation produces an error condition.
  • An object describing a warning, stored at connection when a DBMS operation produces a warning condition.
  • An object representing a message, stored at connection when a DBMS operation sends a message to a client.

The Errors property contains TFDDBError objects. Each of them corresponds to a single error, warning or message item, produced inside of a single DBMS operation. The Kind property returns a DBMS-independent error kind. The SQL and Params properties allows you to get a failed SQL command.

All FireDAC drivers are implementing their own EFDDBEngineException descendant classes. For example, MySQL driver implements the EMySQLNativeException exception class. 

Use a TFDGUIxErrorDialog dialog to display the complete information about the FireDAC / DBMS error.

See Also

Samples