<!--
{
  "availability" : [
    "iOS: 18.4.0 -",
    "iPadOS: 18.4.0 -",
    "macOS: 27.0.0 -",
    "visionOS: 2.4.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "ManagedApp",
  "identifier" : "/documentation/ManagedApp/ManagedAppConfigurationDecodingErrorCode",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "ManagedApp"
    ],
    "preciseIdentifier" : "s:10ManagedApp0aB30ConfigurationDecodingErrorCodeV"
  },
  "title" : "ManagedAppConfigurationDecodingErrorCode"
}
-->

# ManagedAppConfigurationDecodingErrorCode

A code for an error that occurs during configuration decoding.

```
struct ManagedAppConfigurationDecodingErrorCode
```

## Overview

The system reserves some codes for its use only. Reserved codes are equal to or greater than `firstReserved`. Codes less than the `firstReserved` value are app-specific. For more information, see [`code`](/documentation/ManagedApp/ManagedAppConfigurationDecodingError/code).

## Topics

### Initializing an error

[`init?(rawValue: Int)`](/documentation/ManagedApp/ManagedAppConfigurationDecodingErrorCode/init(rawValue:))

Initializes a configuration decoding error code.

### Identifying an error

[`let rawValue: Int`](/documentation/ManagedApp/ManagedAppConfigurationDecodingErrorCode/rawValue)

The error code’s value in its underlying type.

### Type Properties

[`static let dataCorrupted: Int`](/documentation/ManagedApp/ManagedAppConfigurationDecodingErrorCode/dataCorrupted)

An error code that indicates the decoder encountered corrupt data.

[`static let firstReserved: Int`](/documentation/ManagedApp/ManagedAppConfigurationDecodingErrorCode/firstReserved)

An error code for the start of the range of reserved error codes.

[`static let generic: Int`](/documentation/ManagedApp/ManagedAppConfigurationDecodingErrorCode/generic)

A reserved error that indicates the decoder threw an unknown custom error.

[`static let keyNotFound: Int`](/documentation/ManagedApp/ManagedAppConfigurationDecodingErrorCode/keyNotFound)

An error code that indicates the decoder encountered an unknown coding key.

[`static let timeout: Int`](/documentation/ManagedApp/ManagedAppConfigurationDecodingErrorCode/timeout)

An error code that indicates the decoder timed out.

[`static let typeMismatch: Int`](/documentation/ManagedApp/ManagedAppConfigurationDecodingErrorCode/typeMismatch)

An error code that indicates the decoder encountered a type mismatch.

[`static let valueNotFound: Int`](/documentation/ManagedApp/ManagedAppConfigurationDecodingErrorCode/valueNotFound)

An error code that indicates a coding key yields no value.

## Relationships

### Conforms To

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

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

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

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

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

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

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

---

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)