<!--
{
  "availability" : [
    "iOS: 12.0.0 -",
    "iPadOS: 12.0.0 -",
    "macCatalyst: 14.0.0 -",
    "macOS: 11.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AuthenticationServices",
  "identifier" : "/documentation/AuthenticationServices/ASExtensionError",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "Authentication Services"
    ],
    "preciseIdentifier" : "s:SC20ASExtensionErrorCodeLeV"
  },
  "title" : "ASExtensionError"
}
-->

# ASExtensionError

A credential provider extension error.

```
struct ASExtensionError
```

## Topics

### Identifying the error domain

[`let ASExtensionErrorDomain: String`](/documentation/AuthenticationServices/ASExtensionErrorDomain)

The domain for a credential provider extension error.

### Error codes

[`static var credentialIdentityNotFound: ASExtensionError.Code`](/documentation/AuthenticationServices/ASExtensionError/credentialIdentityNotFound)

The credential identity was not found.

[`static var failed: ASExtensionError.Code`](/documentation/AuthenticationServices/ASExtensionError/failed)

The operation failed.

[`static var userCanceled: ASExtensionError.Code`](/documentation/AuthenticationServices/ASExtensionError/userCanceled)

The user canceled the operation.

[`static var userInteractionRequired: ASExtensionError.Code`](/documentation/AuthenticationServices/ASExtensionError/userInteractionRequired)

User interaction is required.

[`enum Code`](/documentation/AuthenticationServices/ASExtensionError/Code)

The codes for a credential provider extension error.

### Describing errors

### Comparing errors

### Type Properties

[`static var errorDomain: String`](/documentation/AuthenticationServices/ASExtensionError/errorDomain)

[`static var matchedExcludedCredential: ASExtensionError.Code`](/documentation/AuthenticationServices/ASExtensionError/matchedExcludedCredential)

## Relationships

### Conforms To

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

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

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

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

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

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

---

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)