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


struct NFCReaderError


Error Information

var errorCode: Int

The error code.

var errorUserInfo: [String : Any]

Additional details about an error.

var localizedDescription: String

A user-facing, localized string that describes the error.

NDEF Tag Errors

Tag Command Configuration Errors

static var tagCommandConfigurationErrorInvalidParameters: NFCReaderError.Code

The tag has been configured with invalid parameters.

Other Errors

static var readerErrorUnsupportedFeature: NFCReaderError.Code

The reader session does not support this feature.

static var readerErrorInvalidParameterLength: NFCReaderError.Code

The length of an input parameter is invalid.

static var readerErrorParameterOutOfBound: NFCReaderError.Code

A parameter value is outside of the acceptable boundary.

static var readerErrorSecurityViolation: NFCReaderError.Code

A security violation associated with the reader session has occurred.

Error Domain

static var errorDomain: String

The error domain for this error.

let NFCErrorDomain: String

The domain for errors associated with Core NFC APIs.

Operator Functions

static func != (NFCReaderError, NFCReaderError) -> Bool

Returns a Boolean value indicating whether two values are not equal.

See Also


let NFCTagResponseUnexpectedLengthErrorKey: String

A user-information dictionary key that indicates an invalid received response packet length.