<!--
{
  "availability" : [
    "iOS: 11.0.0 -",
    "iPadOS: 11.0.0 -",
    "macCatalyst: 13.1.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreNFC",
  "identifier" : "/documentation/CoreNFC/NFCReaderError-swift.struct",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "Core NFC"
    ],
    "preciseIdentifier" : "s:SC14NFCReaderErrorLeV"
  },
  "title" : "NFCReaderError"
}
-->

# NFCReaderError

An error type that indicates problems with reader sessions or tags.

```
struct NFCReaderError
```

## Topics

### Session Errors

[`static var readerSessionInvalidationErrorFirstNDEFTagRead: NFCReaderError.Code`](/documentation/CoreNFC/NFCReaderError-swift.struct/readerSessionInvalidationErrorFirstNDEFTagRead)

The first NDEF tag read by this session is invalid.

[`static var readerSessionInvalidationErrorSessionTerminatedUnexpectedly: NFCReaderError.Code`](/documentation/CoreNFC/NFCReaderError-swift.struct/readerSessionInvalidationErrorSessionTerminatedUnexpectedly)

The reader session terminated unexpectedly.

[`static var readerSessionInvalidationErrorSessionTimeout: NFCReaderError.Code`](/documentation/CoreNFC/NFCReaderError-swift.struct/readerSessionInvalidationErrorSessionTimeout)

The reader session timed out.

[`static var readerSessionInvalidationErrorSystemIsBusy: NFCReaderError.Code`](/documentation/CoreNFC/NFCReaderError-swift.struct/readerSessionInvalidationErrorSystemIsBusy)

The reader session failed because the system is busy.

[`static var readerSessionInvalidationErrorUserCanceled: NFCReaderError.Code`](/documentation/CoreNFC/NFCReaderError-swift.struct/readerSessionInvalidationErrorUserCanceled)

The user canceled the reader session.

### NDEF Tag Errors

[`static var ndefReaderSessionErrorTagNotWritable: NFCReaderError.Code`](/documentation/CoreNFC/NFCReaderError-swift.struct/ndefReaderSessionErrorTagNotWritable)

The NDEF tag isn’t writable.

[`static var ndefReaderSessionErrorTagSizeTooSmall: NFCReaderError.Code`](/documentation/CoreNFC/NFCReaderError-swift.struct/ndefReaderSessionErrorTagSizeTooSmall)

The NDEF tag memory size is too small to store the data.

[`static var ndefReaderSessionErrorTagUpdateFailure: NFCReaderError.Code`](/documentation/CoreNFC/NFCReaderError-swift.struct/ndefReaderSessionErrorTagUpdateFailure)

The reader session failed to update the NDEF tag.

[`static var ndefReaderSessionErrorZeroLengthMessage: NFCReaderError.Code`](/documentation/CoreNFC/NFCReaderError-swift.struct/ndefReaderSessionErrorZeroLengthMessage)

The NDEF tag doesn’t contain an NDEF message.

### Transceive Errors

[`static var readerTransceiveErrorRetryExceeded: NFCReaderError.Code`](/documentation/CoreNFC/NFCReaderError-swift.struct/readerTransceiveErrorRetryExceeded)

Too many retries have occurred.

[`static var readerTransceiveErrorTagConnectionLost: NFCReaderError.Code`](/documentation/CoreNFC/NFCReaderError-swift.struct/readerTransceiveErrorTagConnectionLost)

The reader lost the connection to the tag.

[`static var readerTransceiveErrorTagNotConnected: NFCReaderError.Code`](/documentation/CoreNFC/NFCReaderError-swift.struct/readerTransceiveErrorTagNotConnected)

The tag isn’t in the connected state.

[`static var readerTransceiveErrorTagResponseError: NFCReaderError.Code`](/documentation/CoreNFC/NFCReaderError-swift.struct/readerTransceiveErrorTagResponseError)

The tag has responded with an error.

[`static var readerTransceiveErrorSessionInvalidated: NFCReaderError.Code`](/documentation/CoreNFC/NFCReaderError-swift.struct/readerTransceiveErrorSessionInvalidated)

The reader session is invalid.

[`static var readerTransceiveErrorPacketTooLong: NFCReaderError.Code`](/documentation/CoreNFC/NFCReaderError-swift.struct/readerTransceiveErrorPacketTooLong)

The packet length exceeds the limit supported by the tag.

### Tag Command Configuration Error

[`static var tagCommandConfigurationErrorInvalidParameters: NFCReaderError.Code`](/documentation/CoreNFC/NFCReaderError-swift.struct/tagCommandConfigurationErrorInvalidParameters)

The tag has been configured with invalid parameters.

### Other Errors

[`static var readerErrorUnsupportedFeature: NFCReaderError.Code`](/documentation/CoreNFC/NFCReaderError-swift.struct/readerErrorUnsupportedFeature)

The reader session does not support this feature.

[`static var readerErrorInvalidParameter: NFCReaderError.Code`](/documentation/CoreNFC/NFCReaderError-swift.struct/readerErrorInvalidParameter)

An input parameter is invalid.

[`static var readerErrorInvalidParameterLength: NFCReaderError.Code`](/documentation/CoreNFC/NFCReaderError-swift.struct/readerErrorInvalidParameterLength)

The length of an input parameter is invalid.

[`static var readerErrorParameterOutOfBound: NFCReaderError.Code`](/documentation/CoreNFC/NFCReaderError-swift.struct/readerErrorParameterOutOfBound)

A parameter value is outside of the acceptable boundary.

[`static var readerErrorRadioDisabled: NFCReaderError.Code`](/documentation/CoreNFC/NFCReaderError-swift.struct/readerErrorRadioDisabled)

The NFC wireless radio on the device is disabled.

[`static var readerErrorSecurityViolation: NFCReaderError.Code`](/documentation/CoreNFC/NFCReaderError-swift.struct/readerErrorSecurityViolation)

A security violation associated with the reader session has occurred.

### Error Domain

[`let NFCErrorDomain: String`](/documentation/CoreNFC/NFCErrorDomain)

The domain for errors associated with Core NFC APIs.

### Type Properties

[`static var errorDomain: String`](/documentation/CoreNFC/NFCReaderError-swift.struct/errorDomain)

[`static var paymentTagReaderSessionErrorLocationAuthorizationDenied: NFCReaderError.Code`](/documentation/CoreNFC/NFCReaderError-swift.struct/paymentTagReaderSessionErrorLocationAuthorizationDenied)

[`static var paymentTagReaderSessionErrorLocationServiceRestricted: NFCReaderError.Code`](/documentation/CoreNFC/NFCReaderError-swift.struct/paymentTagReaderSessionErrorLocationServiceRestricted)

[`static var paymentTagReaderSessionErrorOnDeviceLocationUnavailable: NFCReaderError.Code`](/documentation/CoreNFC/NFCReaderError-swift.struct/paymentTagReaderSessionErrorOnDeviceLocationUnavailable)

[`static var readerErrorAccessNotAccepted: NFCReaderError.Code`](/documentation/CoreNFC/NFCReaderError-swift.struct/readerErrorAccessNotAccepted)

[`static var readerErrorIneligible: NFCReaderError.Code`](/documentation/CoreNFC/NFCReaderError-swift.struct/readerErrorIneligible)

## Relationships

### Conforms To

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

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

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

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

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

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