<!--
{
  "availability" : [
    "iOS: 16.1.0 -",
    "iPadOS: 16.1.0 -",
    "macCatalyst: 16.1.0 -",
    "macOS: 13.0.0 -",
    "tvOS: 16.1.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 9.1.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Matter",
  "identifier" : "/documentation/Matter/MTRError",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "Matter"
    ],
    "preciseIdentifier" : "s:SC12MTRErrorCodeLeV"
  },
  "title" : "MTRError"
}
-->

# MTRError

```
struct MTRError
```

## Topics

### Instance Properties

### Type Properties

[`static var bufferTooSmall: MTRError.Code`](/documentation/Matter/MTRError/bufferTooSmall)

[`static var cancelled: MTRError.Code`](/documentation/Matter/MTRError/cancelled)

[`static var dnssdUnauthorized: MTRError.Code`](/documentation/Matter/MTRError/dnssdUnauthorized)

[`static var fabricExists: MTRError.Code`](/documentation/Matter/MTRError/fabricExists)

[`static var generalError: MTRError.Code`](/documentation/Matter/MTRError/generalError)

[`static var integrityCheckFailed: MTRError.Code`](/documentation/Matter/MTRError/integrityCheckFailed)

[`static var invalidArgument: MTRError.Code`](/documentation/Matter/MTRError/invalidArgument)

[`static var invalidIntegerValue: MTRError.Code`](/documentation/Matter/MTRError/invalidIntegerValue)

[`static var invalidMessageLength: MTRError.Code`](/documentation/Matter/MTRError/invalidMessageLength)

[`static var invalidState: MTRError.Code`](/documentation/Matter/MTRError/invalidState)

[`static var invalidStringLength: MTRError.Code`](/documentation/Matter/MTRError/invalidStringLength)

[`static var schemaMismatch: MTRError.Code`](/documentation/Matter/MTRError/schemaMismatch)

[`static var timeout: MTRError.Code`](/documentation/Matter/MTRError/timeout)

[`static var tlvDecodeFailed: MTRError.Code`](/documentation/Matter/MTRError/tlvDecodeFailed)

[`static var unknownSchema: MTRError.Code`](/documentation/Matter/MTRError/unknownSchema)

[`static var wrongAddressType: MTRError.Code`](/documentation/Matter/MTRError/wrongAddressType)

### Operator Functions

### Enumerations

[`enum Code`](/documentation/Matter/MTRError/Code)

### Type Properties

[`static var accessDenied: MTRError.Code`](/documentation/Matter/MTRError/accessDenied)

[`static var busy: MTRError.Code`](/documentation/Matter/MTRError/busy)

[`static var errorDomain: String`](/documentation/Matter/MTRError/errorDomain)

[`static var notFound: MTRError.Code`](/documentation/Matter/MTRError/notFound)

## Relationships

### Conforms To

[`Equatable`](/documentation/Swift/Equatable)

[`Sendable`](/documentation/Swift/Sendable)

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

[`CustomNSError`](/documentation/Foundation/CustomNSError)

[`Error`](/documentation/Swift/Error)

[`Hashable`](/documentation/Swift/Hashable)

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)