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

# EComponentError

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

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

## Declaration

`type EComponentError = class(Exception) end;`

## Inheritance

`EComponentError` |  | Exception raised when an error occurs in the component registration routines.
`Exception`
?
`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.