---
title: HMError.Code.invalidClass
framework: homekit
role: symbol
role_heading: Case
path: homekit/hmerror/code/invalidclass
---

# HMError.Code.invalidClass

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

## Declaration

```swift
case invalidClass
```

## See Also

### General errors

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