Delphi / Object Pascal · Exception

EAbstractError Exception

What does EAbstractError Exception mean in Delphi / Object Pascal?

Raised when code calls a method declared with the abstract directive that was never overridden in the concrete class being used - either at runtime when the call happens, or at design time when a component with an unoverridden abstract method is placed on a form.

EAbstractError ExceptionDelphi (VCL) · Delphi (FireMonkey)

Condition

Raised when code calls a method declared with the abstract directive that was never overridden in the concrete class being used - either at runtime when the call happens, or at design time when a component with an unoverridden abstract method is placed on a form.

Fix

Override every abstract method inherited from a base class before instantiating a descendant, and when building a component or framework, double-check that every intended override in descendant units is actually implemented rather than accidentally omitted.

Related exception