Skip to content

EStringListError

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

    Declaration

    Source position: classesh.inc line 150

    type
    
      EStringListError = class(Exception)
      end;
    

    Description

    When an error occurs in one of the methods of TStrings then an EStringListError is raised. This can have one of the following causes:

    1. There is not enough memory to expand the list.
    2. The list tried to grow beyond its maximal capacity.
    3. A non-existent element of the list was referenced. (i.e. the list index was out of bounds)
    4. An attempt was made to add a duplicate entry to a TStringList when TStringList.Duplicates is False.

    See also

    Name Description
    TStrings Class to manage arrays or collections of strings.
    TStringList Standard implementation of the TStrings class.