---
title: MTRError.Code
framework: matter
role: symbol
role_heading: Enumeration
path: matter/mtrerror/code
---

# MTRError.Code

## Declaration

```swift
enum Code
```

## Topics

### Enumeration Cases

- [MTRError.Code.bufferTooSmall](matter/mtrerror/code/buffertoosmall.md)
- [MTRError.Code.cancelled](matter/mtrerror/code/cancelled.md)
- [MTRError.Code.dnssdUnauthorized](matter/mtrerror/code/dnssdunauthorized.md)
- [MTRError.Code.fabricExists](matter/mtrerror/code/fabricexists.md)
- [MTRError.Code.generalError](matter/mtrerror/code/generalerror.md)
- [MTRError.Code.integrityCheckFailed](matter/mtrerror/code/integritycheckfailed.md)
- [MTRError.Code.invalidArgument](matter/mtrerror/code/invalidargument.md)
- [MTRError.Code.invalidIntegerValue](matter/mtrerror/code/invalidintegervalue.md)
- [MTRError.Code.invalidMessageLength](matter/mtrerror/code/invalidmessagelength.md)
- [MTRError.Code.invalidState](matter/mtrerror/code/invalidstate.md)
- [MTRError.Code.invalidStringLength](matter/mtrerror/code/invalidstringlength.md)
- [MTRError.Code.schemaMismatch](matter/mtrerror/code/schemamismatch.md)
- [MTRError.Code.timeout](matter/mtrerror/code/timeout.md)
- [MTRError.Code.tlvDecodeFailed](matter/mtrerror/code/tlvdecodefailed.md)
- [MTRError.Code.unknownSchema](matter/mtrerror/code/unknownschema.md)
- [MTRError.Code.wrongAddressType](matter/mtrerror/code/wrongaddresstype.md)
- [MTRError.Code.accessDenied](matter/mtrerror/code/accessdenied.md)
- [MTRError.Code.busy](matter/mtrerror/code/busy.md)
- [MTRError.Code.notFound](matter/mtrerror/code/notfound.md)

### Initializers

- [init(rawValue:)](matter/mtrerror/code/init(rawvalue:).md)

## Relationships

### Conforms To

- [BitwiseCopyable](swift/bitwisecopyable.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [RawRepresentable](swift/rawrepresentable.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)
