Delphi / Object Pascal · Database exception

EFDException Exception (FireDAC)

What does EFDException Exception (FireDAC) mean in Delphi / Object Pascal?

The base exception class for every FireDAC error that isn't DBMS-specific - configuration problems, driver-loading failures, or FireDAC-internal state errors. FireDAC errors that come from the DBMS itself instead raise the more specific EFDDBEngineException descendant.

EFDException Exception (FireDAC)Delphi (VCL) · Delphi (FireMonkey) · Delphi (FireDAC)

Condition

The base exception class for every FireDAC error that isn't DBMS-specific - configuration problems, driver-loading failures, or FireDAC-internal state errors. FireDAC errors that come from the DBMS itself instead raise the more specific EFDDBEngineException descendant.

Fix

Catch EFDException when any FireDAC-originated problem should be handled generically, and check whether the actual instance is an EFDDBEngineException to branch into backend-specific handling for SQL error codes and constraint violations versus generic FireDAC configuration issues.

Related database exception