RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TParser.ErrorFmt Method

Raise an EParserError 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 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. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!