Delphi Error – E2078 Procedure FAIL only allowed in constructor

Delphi Compiler Error

E2078 Procedure FAIL only allowed in constructor

Reason for the Error & Solution

The standard procedure Fail can only be called from within a constructor – it is illegal otherwise.