System.Classes.TParser.ErrorFmt
Delphi
procedure ErrorFmt(const Ident: string; const Args: array of const); overload;
procedure ErrorFmt(const IdentRes: PResStringRec; const Args: array of const); overload;
C++
void __fastcall ErrorFmt(const System::UnicodeString Ident, const System::TVarRec *Args, const int Args_High)/* overload */;
void __fastcall ErrorFmt(const System::PResStringRec IdentRes, const System::TVarRec *Args, const int Args_High)/* overload */;
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
procedure function |
public | System.Classes.pas System.Classes.hpp |
System.Classes | TParser |
Description
Raise an EParserError error with a specified error message.
Call ErrorFmt to force the raising of an EParserError exception. Ident specifies the exception error message string. Args specifies an array of constants that can be incorporated into the error message string - the Format routine is called to replace placeholder characters in the error message string with these values.
Use this to simulate an error encountered in the parsing of a file.