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

# EStringListError

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

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

## Declaration

`type EStringListError = class(Exception) end;`

## Inheritance

`EStringListError` |  | Exception raised when an error occurs in a method of TStrings.
`Exception`
?
`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.AllowDuplicates is False.

## See also

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