Delphi / Object Pascal · Exception

EFilerError Exception

What does EFilerError Exception mean in Delphi / Object Pascal?

Raised when an error occurs while streaming a component, such as loading or saving a form's DFM data. It's the parent of the more specific EReadError, EWriteError, EClassNotFound, and EInvalidImage streaming exceptions.

EFilerError ExceptionDelphi (VCL) · Delphi (FireMonkey)

Condition

Raised when an error occurs while streaming a component, such as loading or saving a form's DFM data. It's the parent of the more specific EReadError, EWriteError, EClassNotFound, and EInvalidImage streaming exceptions.

Fix

Check that the DFM/stream format matches what the reading code expects - correct Delphi version, no manual corruption of the file - and catch the more specific descendant exceptions individually when different handling is needed for a missing class versus a truncated stream.

Related exception