Delphi / Object Pascal · Exception

EPropertyError Exception

What does EPropertyError Exception mean in Delphi / Object Pascal?

Raised when an attempt to set a published property's value fails, typically at design time or while streaming DFM data, when the value being assigned isn't valid for the property or the property setter's own validation rejects it.

EPropertyError ExceptionDelphi (VCL) · Delphi (FireMonkey)

Condition

Raised when an attempt to set a published property's value fails, typically at design time or while streaming DFM data, when the value being assigned isn't valid for the property or the property setter's own validation rejects it.

Fix

Check that the DFM/property value being set matches what the setter expects - a valid enum ordinal, an in-range numeric value, or a non-nil reference where required - and validate property assignments driven by external or streamed data before assigning them.

Related exception