OperationError

public enum OperationError : MobileAuthenticationClientError
extension OperationError: LocalizedError

An error occurred during registration or deregistration.

  • A network error occurred while redeeming the token: either the server was not reachable or it returned an HTTP error.

    Declaration

    Swift

    case NetworkError(cause: Error? = nil)

    Parameters

    cause

    The underlying error.

  • A FIDO UAF error occurred.

    Declaration

    Swift

    case FidoError(errorCode: FidoErrorCode, cause: Error? = nil)

    Parameters

    errorCode

    The FIDO error code.

    cause

    The underlying error that is related to the error occurred.

  • An error that occurs with username-less out-of-band authentication. If the username of a registered account is provided to the AccountSelectionHandler, but the user is not defined in the server where the token was redeemed.

    Declaration

    Swift

    case UserNotRegisteredInServer(message: String, cause: Error? = nil)

    Parameters

    message

    Additional information about the error.

    cause

    The underlying error that is related to the error occurred.

  • An error that occurs during registration. When try to register a new authenticator in a server for a given username, but there is another authenticator already registered in another server for the same username.

    Important

    A username can only be defined in one server.

    Declaration

    Swift

    case UserAlreadyRegisteredInAnotherServer(message: String, cause: Error? = nil)

    Parameters

    message

    Additional information about the error.

    cause

    The underlying error that is related to the error occurred.

  • Unknown error, handling not categorized error cases.

    Requires

    iOS platform

    Declaration

    Swift

    case Unknown(message: String? = nil, cause: Error? = nil)

    Parameters

    message

    Additional information about the error.

    cause

    The underlying error that is related to the error occurred.

Localized descriptions

  • A message describing what error occurred.

    Declaration

    Swift

    public var errorDescription: String? { get }