Delphi / Object Pascal · Database exception
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.
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.
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.