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

# HMError.Code.nameContainsProhibitedCharacters

An attempt to name an object with prohibited characters.

## Declaration

```swift
case nameContainsProhibitedCharacters
```

## Discussion

Discussion Only letters, symbols, numbers, spaces, and apostrophes are permitted in names.

## See Also

### Value errors

- [HMError.Code.invalidDataFormatSpecified](homekit/hmerror/code/invaliddataformatspecified.md)
- [HMError.Code.invalidValueType](homekit/hmerror/code/invalidvaluetype.md)
- [HMError.Code.nameDoesNotEndWithValidCharacters](homekit/hmerror/code/namedoesnotendwithvalidcharacters.md)
- [HMError.Code.nameDoesNotStartWithValidCharacters](homekit/hmerror/code/namedoesnotstartwithvalidcharacters.md)
- [HMError.Code.stringLongerThanMaximum](homekit/hmerror/code/stringlongerthanmaximum.md)
- [HMError.Code.stringShorterThanMinimum](homekit/hmerror/code/stringshorterthanminimum.md)
- [HMError.Code.valueHigherThanMaximum](homekit/hmerror/code/valuehigherthanmaximum.md)
- [HMError.Code.valueLowerThanMinimum](homekit/hmerror/code/valuelowerthanminimum.md)
