ReaderConnectionError

public enum ReaderConnectionError : Error, StringValueConvertible, CustomStringConvertible

Enum describing the reason for access failure

  • The requested action on the reader is not allowed

    Declaration

    Swift

    case forbidden
  • The reader that was requested was unavailable. Check that it had not become unavailable via

    Declaration

    Swift

    case readerUnavailable
  • Another transaction is in progress with the reader. The API only supports one reader at a time, so ensure that only one transaction is being carried out.

    Declaration

    Swift

    case transactionInProgress
  • Bluetooth was disabled during a transaction causing it to fail

    Declaration

    Swift

    case bluetoothDisabled
  • The user cancelled out of a required FIDO prompt e.g. they cancelled entering their pin, or providing a fingerprint

    Declaration

    Swift

    case userCancelled
  • The reader closed the remote connection. This will likely happen in a timeout scenario, which can occur if the user did not input a pin, or the connection was flaky and was unable to communicate in the specified time.

    Declaration

    Swift

    case remoteClose
  • The connection failed because a second factor was required to continue but one was not present

    Declaration

    Swift

    case secondFactorRequired
  • The connection failed because a second factor authenticator on device was required to continue but one was not present

    Declaration

    Swift

    case deviceSecondFactorRequired
  • The user was expected to open the app, but did not do this in the required time. The request failed after some time

    Declaration

    Swift

    case openAppRequired
  • The second factor portion of the credential has been broken and the user will need to reregister.

    Declaration

    Swift

    case invalidatedCredential
  • Second factor is required but the device’s biometrics are locked out

    Declaration

    Swift

    case biometricsLockedOut
  • An unexpected error has occurred when connecting to the reader. Log this and report findings to Gallagher for analysis

    Declaration

    Swift

    case unexpected(String)
  • Declaration

    Swift

    public var stringValue: String { get }
  • Declaration

    Swift

    public var description: String { get }