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

# EListError

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

Exception raised when an error occurs in lists handling.

## Declaration

Source position: classesh.inc line 138

`type EListError = class(Exception)`

## Inheritance

`EListError` |  | Exception raised when an error occurs in lists handling.
`Exception` |  | Base class of all exceptions.
`TObject`

## Description

If an error occurs in one of the TList or TStrings methods, then a EListError exception is raised. This can occur in one of the following cases:

1. There is not enough memory to expand the list.
2. The list tried to grow beyond its maximal capacity.
3. An attempt was made to reduce the capacity of the list below the current element count.
4. An attempt was made to set the list count to a negative value.
5. A non-existent element of the list was referenced. (i.e. the list index was out of bounds)
6. An attempt was made to move an item to a position outside the list's bounds.

## See also

TList |  | Class to manage collections of pointers.
TStrings |  | Class to manage arrays or collections of strings

Documentation generated on: May 14 2021