[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] Reference for unit 'Classes' (#rtl)

TStrings.Error

Raises an EStringListError exception.

Declaration

Source position: line 0

protected procedure TStrings.Error(

  const Msg: String;

  Data: Integer

);

procedure TStrings.Error(

  const Msg: PString;

  Data: Integer

);

Description

Error raises an EStringListError exception. It passes Msg as a format with Data as the only argument.

This method can be used by descendent objects to raise an error.

See also

EStringListError

  

Exception raised when an error occurs in a method of TStrings.

The latest version of this document can be found at lazarus-ccr.sourceforge.net.