---
title: LAError.Code
framework: localauthentication
role: symbol
role_heading: Enumeration
path: localauthentication/laerror-swift.struct/code
---

# LAError.Code

Errors issued by the LocalAuthentication framework.

## Declaration

```swift
enum Code
```

## Topics

### Cancellation

- [LAError.Code.appCancel](localauthentication/laerror-swift.struct/code/appcancel.md)
- [LAError.Code.systemCancel](localauthentication/laerror-swift.struct/code/systemcancel.md)
- [LAError.Code.userCancel](localauthentication/laerror-swift.struct/code/usercancel.md)

### Biometry failure

- [LAError.Code.biometryDisconnected](localauthentication/laerror-swift.struct/code/biometrydisconnected.md)
- [biometryLockout](localauthentication/laerror-swift.struct/code/biometrylockout.md)
- [biometryNotAvailable](localauthentication/laerror-swift.struct/code/biometrynotavailable.md)
- [biometryNotEnrolled](localauthentication/laerror-swift.struct/code/biometrynotenrolled.md)
- [LAError.Code.biometryNotPaired](localauthentication/laerror-swift.struct/code/biometrynotpaired.md)
- [LAError.Code.touchIDLockout](localauthentication/laerror-swift.struct/code/touchidlockout.md)
- [LAError.Code.touchIDNotAvailable](localauthentication/laerror-swift.struct/code/touchidnotavailable.md)
- [LAError.Code.touchIDNotEnrolled](localauthentication/laerror-swift.struct/code/touchidnotenrolled.md)

### Other errors

- [LAError.Code.authenticationFailed](localauthentication/laerror-swift.struct/code/authenticationfailed.md)
- [LAError.Code.invalidContext](localauthentication/laerror-swift.struct/code/invalidcontext.md)
- [LAError.Code.invalidDimensions](localauthentication/laerror-swift.struct/code/invaliddimensions.md)
- [LAError.Code.notInteractive](localauthentication/laerror-swift.struct/code/notinteractive.md)
- [LAError.Code.passcodeNotSet](localauthentication/laerror-swift.struct/code/passcodenotset.md)
- [LAError.Code.userFallback](localauthentication/laerror-swift.struct/code/userfallback.md)
- [LAError.Code.watchNotAvailable](localauthentication/laerror-swift.struct/code/watchnotavailable.md)

### Supporting Constants

- [kLAErrorDomain](localauthentication/klaerrordomain.md)
- [kLAErrorAppCancel](localauthentication/klaerrorappcancel.md)
- [kLAErrorSystemCancel](localauthentication/klaerrorsystemcancel.md)
- [kLAErrorUserCancel](localauthentication/klaerrorusercancel.md)
- [kLAErrorBiometryDisconnected](localauthentication/klaerrorbiometrydisconnected.md)
- [kLAErrorBiometryLockout](localauthentication/klaerrorbiometrylockout.md)
- [kLAErrorBiometryNotAvailable](localauthentication/klaerrorbiometrynotavailable.md)
- [kLAErrorBiometryNotEnrolled](localauthentication/klaerrorbiometrynotenrolled.md)
- [kLAErrorBiometryNotPaired](localauthentication/klaerrorbiometrynotpaired.md)
- [kLAErrorTouchIDLockout](localauthentication/klaerrortouchidlockout.md)
- [kLAErrorTouchIDNotAvailable](localauthentication/klaerrortouchidnotavailable.md)
- [kLAErrorTouchIDNotEnrolled](localauthentication/klaerrortouchidnotenrolled.md)
- [kLAErrorAuthenticationFailed](localauthentication/klaerrorauthenticationfailed.md)
- [kLAErrorInvalidContext](localauthentication/klaerrorinvalidcontext.md)
- [kLAErrorInvalidDimensions](localauthentication/klaerrorinvaliddimensions.md)
- [kLAErrorNotInteractive](localauthentication/klaerrornotinteractive.md)
- [kLAErrorPasscodeNotSet](localauthentication/klaerrorpasscodenotset.md)
- [kLAErrorUserFallback](localauthentication/klaerroruserfallback.md)
- [kLAErrorWatchNotAvailable](localauthentication/klaerrorwatchnotavailable.md)

### Enumeration Cases

- [LAError.Code.companionNotAvailable](localauthentication/laerror-swift.struct/code/companionnotavailable-swift.enum.case.md)

### Initializers

- [init(rawValue:)](localauthentication/laerror-swift.struct/code/init(rawvalue:).md)

### Type Properties

- [companionNotAvailable](localauthentication/laerror-swift.struct/code/companionnotavailable-swift.type.property.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

### Errors

- [LAError](localauthentication/laerror-swift.struct.md)
- [LAErrorDomain](localauthentication/laerrordomain.md)
