---
title: invalidClass
framework: homekit
role: symbol
role_heading: Type Property
path: homekit/hmerror/invalidclass
---

# invalidClass

An attempt to use an abstract base class in an operation instead of a concrete subclass.

## Declaration

```swift
static var invalidClass: HMError.Code { get }
```

## See Also

### Detecting general errors

- [alreadyExists](homekit/hmerror/alreadyexists.md)
- [genericError](homekit/hmerror/genericerror.md)
- [incompatibleHomeHub](homekit/hmerror/incompatiblehomehub.md)
- [notFound](homekit/hmerror/notfound.md)
- [notificationAlreadyEnabled](homekit/hmerror/notificationalreadyenabled.md)
- [notificationNotSupported](homekit/hmerror/notificationnotsupported.md)
- [operationNotSupported](homekit/hmerror/operationnotsupported.md)
- [unexpectedError](homekit/hmerror/unexpectederror.md)
- [missingEntitlement](homekit/hmerror/missingentitlement.md)
- [referToUserManual](homekit/hmerror/refertousermanual.md)
