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

# EStringListError

[Properties (by Name)] [Methods (by Name)] [Events (by Name)]

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

## Declaration

Source position: classesh.inc line 141

`type EStringListError = class(Exception)`

## Inheritance

`EStringListError` |  | Exception raised when an error occurs in a method of TStrings.
`Exception` |  | Base class of all exceptions.
`TObject`

## 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

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