RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TParser.ErrorFmt Method

Raise an EParseError error with a specified error message.

Pascal
procedure ErrorFmt(const Ident: string; const Args: array of const);
C++
__fastcall ErrorFmt(const AnsiString Ident, const array of const Args);

Call ErrorFmt to force the raising of an EParseError exception. Ident specifies the exception error message string. Args specify 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. 

 

EParseError 

ErrorFmt 

ErrorStr 

Format 

OnError

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!