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

# HMError.Code.stringShorterThanMinimum

An attempt to use a string shorter than the required minimum.

## Declaration

```swift
case stringShorterThanMinimum
```

## See Also

### Value errors

- [HMError.Code.invalidDataFormatSpecified](homekit/hmerror/code/invaliddataformatspecified.md)
- [HMError.Code.invalidValueType](homekit/hmerror/code/invalidvaluetype.md)
- [HMError.Code.nameContainsProhibitedCharacters](homekit/hmerror/code/namecontainsprohibitedcharacters.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.valueHigherThanMaximum](homekit/hmerror/code/valuehigherthanmaximum.md)
- [HMError.Code.valueLowerThanMinimum](homekit/hmerror/code/valuelowerthanminimum.md)
