<!--
{
  "documentType" : "article",
  "framework" : "PassKit",
  "identifier" : "/documentation/PassKit/error-constants",
  "metadataVersion" : "0.1.0",
  "role" : "collectionGroup",
  "title" : "Error constants"
}
-->

# Error constants

Error code constants for identity operations.

## Topics

### Constants

[`static var cancelled: PKIdentityError.Code`](/documentation/PassKit/PKIdentityError-swift.struct/cancelled)

An error that indicates the user cancels the presented sheet.

[`static var invalidElement: PKIdentityError.Code`](/documentation/PassKit/PKIdentityError-swift.struct/invalidElement)

An error that indicates an element the app requests isn’t valid.

[`static var invalidNonce: PKIdentityError.Code`](/documentation/PassKit/PKIdentityError-swift.struct/invalidNonce)

An error that indicates the number is too large or unsuitable.

[`static var notSupported: PKIdentityError.Code`](/documentation/PassKit/PKIdentityError-swift.struct/notSupported)

An error that indicates the request originates from a device the framework doesn’t support.

[`static var networkUnavailable: PKIdentityError.Code`](/documentation/PassKit/PKIdentityError-swift.struct/networkUnavailable)

An error that indicates a network isn’t available.

[`static var noElementsRequested: PKIdentityError.Code`](/documentation/PassKit/PKIdentityError-swift.struct/noElementsRequested)

An error that indicates the elements aren’t supported.

[`static var requestAlreadyInProgress: PKIdentityError.Code`](/documentation/PassKit/PKIdentityError-swift.struct/requestAlreadyInProgress)

An error that indicates a request is already in progress.

[`static var unknown: PKIdentityError.Code`](/documentation/PassKit/PKIdentityError-swift.struct/unknown)

An error that indicates an unknown 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)