<!--
{
  "availability" : [
    "iOS: 18.0.0 -",
    "iPadOS: 18.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "PassKit",
  "identifier" : "/documentation/PassKit/JPKIPassContents/Error",
  "metadataVersion" : "0.1.0",
  "role" : "Enumeration",
  "symbol" : {
    "kind" : "Enumeration",
    "modules" : [
      "PassKit (Apple Pay and Wallet)"
    ],
    "preciseIdentifier" : "s:7PassKit16JPKIPassContentsV5ErrorO"
  },
  "title" : "JPKIPassContents.Error"
}
-->

# JPKIPassContents.Error

Defines a set of possible errors.

```
enum Error
```

## Topics

### Error cases

[`case appNotForeground`](/documentation/PassKit/JPKIPassContents/Error/appNotForeground)

The calling app isn’t in the foreground.

[`case biometricUnavailable`](/documentation/PassKit/JPKIPassContents/Error/biometricUnavailable)

Biometric authorization isn’t available.

[`case incorrectUserAuthentication`](/documentation/PassKit/JPKIPassContents/Error/incorrectUserAuthentication)

The provided credential authentication request wasn’t accepted.

[`case invalidInput`](/documentation/PassKit/JPKIPassContents/Error/invalidInput)

The PIN or password doesn’t meet the specified conditions.

[`case resourceNotAvailable`](/documentation/PassKit/JPKIPassContents/Error/resourceNotAvailable)

The system resouce is currently unavailable.

### Enumeration Cases

[`case biometricAuthenticationFailed(laError: LAError)`](/documentation/PassKit/JPKIPassContents/Error/biometricAuthenticationFailed(laError:))

Biometric authorization failed

[`case unknownError`](/documentation/PassKit/JPKIPassContents/Error/unknownError)

Unknown error occurred

[`case userAuthenticationFailed(remainingRetryAttempts: Int)`](/documentation/PassKit/JPKIPassContents/Error/userAuthenticationFailed(remainingRetryAttempts:))

Credential authentication request provided was rejected.

## Relationships

### Conforms To

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

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

[`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)