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

# EComponentError

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

Exception raised when an error occurs in the component registration routines.

## Declaration

Source position: classesh.inc line 142

`type EComponentError = class(Exception)`

## Inheritance

`EComponentError` |  | Exception raised when an error occurs in the component registration routines.
`Exception` |  | Base class of all exceptions.
`TObject`

## Description

When an error occurs during the registration of a component, or when naming a component, then a EComponentError is raised. Possible causes are:

1. An name with an illegal character was assigned to a component.
2. A component with the same name and owner already exists.
3. The component registration system isn't set up properly.

## See also

TComponent |  | Base class for all components that need owner-owned functionality.
TComponent.Name |  | Name of the component.