ReaderError - treastrain/TRETJapanNFCReader GitHub Wiki
Possible errors returned by NFCKit and CoreNFC framework reader session.
public struct ReaderError: Error, LocalizedError, CustomNSError CustomNSError, Equatable, Error, LocalizedError
Initialize an error within this domain with the given code and userInfo.
public init(_ code: Code, userInfo: [String : Any] = [:], description: String? = nil) os(iOS) && !targetEnvironment(macCatalyst)-
@available(iOS 11.0, *) public init(from coreNFCInstance: CoreNFC.NFCReaderError)
NFCKit is not supported on the current platform.
public static var readerErrorUnsupportedFeature: Code = .readerErrorUnsupportedFeatureMissing required entitlement and/or privacy settings from the client app.
public static var readerErrorSecurityViolation: Code = .readerErrorSecurityViolationInput parameter is invalid.
public static var readerErrorInvalidParameter: Code = .readerErrorInvalidParameterLength of input parameter is invalid, i.e. size of data container.
public static var readerErrorInvalidParameterLength: Code = .readerErrorInvalidParameterLengthParameter value is outside of the acceptable boundary / range.
public static var readerErrorParameterOutOfBound: Code = .readerErrorParameterOutOfBoundNFC Radio is disabled.
public static var readerErrorRadioDisabled: Code = .readerErrorRadioDisabledConnection to the tag is lost.
public static var readerTransceiveErrorTagConnectionLost: Code = .readerTransceiveErrorTagConnectionLostMaximum data transmission retry has reached.
public static var readerTransceiveErrorRetryExceeded: Code = .readerTransceiveErrorRetryExceededTag response is invalid or tag does not provide a response. Additional error information may be contain in the underlying user info dictionary.
public static var readerTransceiveErrorTagResponseError: Code = .readerTransceiveErrorTagResponseErrorSession has been previously invalidated.
public static var readerTransceiveErrorSessionInvalidated: Code = .readerTransceiveErrorSessionInvalidatedPacket length has exceeded the limit.
public static var readerTransceiveErrorPacketTooLong: Code = .readerTransceiveErrorPacketTooLongTag is not in the connected state.
public static var readerTransceiveErrorTagNotConnected: Code = .readerTransceiveErrorTagNotConnectedSession is invalidated by the user.
public static var readerSessionInvalidationErrorUserCanceled: Code = .readerSessionInvalidationErrorUserCanceledSession is timed out.
public static var readerSessionInvalidationErrorSessionTimeout: Code = .readerSessionInvalidationErrorSessionTimeoutSession is terminated unexpectly.
public static var readerSessionInvalidationErrorSessionTerminatedUnexpectedly: Code = .readerSessionInvalidationErrorSessionTerminatedUnexpectedlyCore NFC is temporary unavailable due to system resource constraints.
public static var readerSessionInvalidationErrorSystemIsBusy: Code = .readerSessionInvalidationErrorSystemIsBusySession is terminated after the 1st NDEF tag is read.
public static var readerSessionInvalidationErrorFirstNDEFTagRead: Code = .readerSessionInvalidationErrorFirstNDEFTagReadpublic static var tagCommandConfigurationErrorInvalidParameters: Code = .tagCommandConfigurationErrorInvalidParametersNDEF tag is not writable.
public static var ndefReaderSessionErrorTagNotWritable: Code = .ndefReaderSessionErrorTagNotWritableNDEF tag write fails.
public static var ndefReaderSessionErrorTagUpdateFailure: Code = .ndefReaderSessionErrorTagUpdateFailureNDEF tag memory size is too small to store the desired data.
public static var ndefReaderSessionErrorTagSizeTooSmall: Code = .ndefReaderSessionErrorTagSizeTooSmallNDEF tag does not contain any NDEF message.
public static var ndefReaderSessionErrorZeroLengthMessage: Code = .ndefReaderSessionErrorZeroLengthMessagepublic static var errorDomain: String = ErrorDomainpublic var code: Codepublic var errorCode: Intpublic var errorUserInfo: [String : Any]public var errorDescription: String?public static func == (lhs: ReaderError, rhs: ReaderError) -> Bool os(iOS) && !targetEnvironment(macCatalyst)-
@available(iOS 11.0, *) public static func == (lhs: ReaderError, rhs: CoreNFC.NFCReaderError) -> Bool
os(iOS) && !targetEnvironment(macCatalyst)-
@available(iOS 11.0, *) public static func == (lhs: CoreNFC.NFCReaderError, rhs: ReaderError) -> Bool