Delphi / Object Pascal · Database exception

EDBEngineError Exception (BDE)

What does EDBEngineError Exception (BDE) mean in Delphi / Object Pascal?

Raised whenever the Borland Database Engine (BDE) itself reports an error condition. Its Errors property holds one or more TDBError objects - when the underlying error originates from a database system accessed through the BDE (InterBase, Oracle, Sybase, etc.) there are typically two: the generic BDE-level error and the database system's own, more specific error message and native code.

EDBEngineError Exception (BDE)Delphi (VCL) · Delphi (BDE)

Condition

Raised whenever the Borland Database Engine (BDE) itself reports an error condition. Its Errors property holds one or more TDBError objects - when the underlying error originates from a database system accessed through the BDE (InterBase, Oracle, Sybase, etc.) there are typically two: the generic BDE-level error and the database system's own, more specific error message and native code.

Fix

Iterate the Errors collection rather than relying only on the top-level Message - the second TDBError entry, when present, usually has the actually useful backend-specific error text and NativeCode. Since the BDE is long past end-of-life, treat hitting this class today as a signal to plan a migration to FireDAC or another modern data-access layer.

Related database exception