---
title: ASExtensionError.Code
framework: authenticationservices
role: symbol
role_heading: Enumeration
path: authenticationservices/asextensionerror/code
---

# ASExtensionError.Code

The codes for a credential provider extension error.

## Declaration

```swift
enum Code
```

## Topics

### Codes

- [ASExtensionError.Code.credentialIdentityNotFound](authenticationservices/asextensionerror/code/credentialidentitynotfound.md)
- [ASExtensionError.Code.failed](authenticationservices/asextensionerror/code/failed.md)
- [ASExtensionError.Code.userCanceled](authenticationservices/asextensionerror/code/usercanceled.md)
- [ASExtensionError.Code.userInteractionRequired](authenticationservices/asextensionerror/code/userinteractionrequired.md)

### Enumeration Cases

- [ASExtensionError.Code.matchedExcludedCredential](authenticationservices/asextensionerror/code/matchedexcludedcredential.md)

### Initializers

- [init(rawValue:)](authenticationservices/asextensionerror/code/init(rawvalue:).md)

## Relationships

### Conforms To

- [BitwiseCopyable](swift/bitwisecopyable.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [RawRepresentable](swift/rawrepresentable.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### Recognizing errors

- [ASExtensionError](authenticationservices/asextensionerror.md)
- [ASExtensionErrorDomain](authenticationservices/asextensionerrordomain.md)
