RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TParser.ErrorStr Method

Raise an EParserError error with a specific message.

Pascal
procedure ErrorStr(const Message: string);
C++
__fastcall ErrorStr(const AnsiString Message);

Call ErrorStr to force the raising of an EParserError exception with an error message specified by S.  

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!