<!--
{
  "availability" : [
    "iOS: 26.0.0 -",
    "iPadOS: 26.0.0 -",
    "macCatalyst: -",
    "macOS: 26.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "IdentityDocumentServices",
  "identifier" : "/documentation/IdentityDocumentServices/IdentityDocumentPresentmentError",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "IdentityDocumentServices"
    ],
    "preciseIdentifier" : "s:24IdentityDocumentServices0aB16PresentmentErrorV"
  },
  "title" : "IdentityDocumentPresentmentError"
}
-->

# IdentityDocumentPresentmentError

An error type the identity document web presentment controller throws.

```
struct IdentityDocumentPresentmentError
```

## Topics

### Inspecting an error

[`let code: IdentityDocumentPresentmentError.Code`](/documentation/IdentityDocumentServices/IdentityDocumentPresentmentError/code-swift.property)

The code of the current error.

[`let debugDescription: String`](/documentation/IdentityDocumentServices/IdentityDocumentPresentmentError/debugDescription)

A debug description that provides additional context about the current error.

### Matching error codes

[`enum Code`](/documentation/IdentityDocumentServices/IdentityDocumentPresentmentError/Code-swift.enum)

Error codes for identity document web presentment errors.

[`static let cancelled: IdentityDocumentPresentmentError.Code`](/documentation/IdentityDocumentServices/IdentityDocumentPresentmentError/cancelled)

An error that indicates the current request was canceled.

[`static let invalidRequest: IdentityDocumentPresentmentError.Code`](/documentation/IdentityDocumentServices/IdentityDocumentPresentmentError/invalidRequest)

An error thrown when a request is invalid.

[`static let notEntitled: IdentityDocumentPresentmentError.Code`](/documentation/IdentityDocumentServices/IdentityDocumentPresentmentError/notEntitled)

An error that indicates the caller is not entitled.

[`static let requestInProgress: IdentityDocumentPresentmentError.Code`](/documentation/IdentityDocumentServices/IdentityDocumentPresentmentError/requestInProgress)

An error that indicates a request in progress.

[`static let unknown: IdentityDocumentPresentmentError.Code`](/documentation/IdentityDocumentServices/IdentityDocumentPresentmentError/unknown)

An error that indicates the framework encountered an unknown problem.

## Relationships

### Conforms To

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

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

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

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

---

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)