Icon ExpectedError Method

procedure ExpectedError(const Value: String)

Available In: Client and Server Applications

Use this method to raise an exception due to a parsing error, such as a case when a certain token literal was expected and a different literal was found instead.
Image