FUIPasscodeControllerError

public enum FUIPasscodeControllerError : Error

This error is to be thrown by FUIPasscodeControllerDelegate implementation when function shouldTryPasscode is called with a passcode that failed to open the secure store or match the saved passcode.

  • The passcode user provided is not valid.

    • code: An error code.
    • triesRemaining: The number of tries remaining for user to try. Or, passcodePolicyNoLimit if there is no limit.

    Declaration

    Swift

    case invalidPasscode(code: String, triesRemaining: Int)
  • The passcode user provided does not match the saved passcode.

    • message: An error message.
    • triesRemaining: The number of tries remaining for user to try. Or, passcodePolicyNoLimit if there is no limit.

    Declaration

    Swift

    case failedToMatch(message: String, triesRemaining: Int)
  • The passcode user provided does not meet the specified FUIPasscodePolicy.

    • message: An error message.

    Declaration

    Swift

    case failedToMeetPolicy(message: String)