OathError

public enum OathError : FRError
extension OathError: CustomNSError

OathError represents an error captured by FRAuthenticator SDK for any operations related to Oath

  • invalidQRCode: Fail to parse or validate given secret
  • Declaration

    Swift

    case invalidSecret
  • Unique error code for given error

    Declaration

    Swift

    var code: Int { get }
  • Parses OathError value into integer error code

    Declaration

    Swift

    func parseErrorCode() -> Int

    Return Value

    Int value of unique error code

CustomNSError protocols

  • An error domain for OathError

    Declaration

    Swift

    public static var errorDomain: String { get }
  • Error codes for each error enum

    Declaration

    Swift

    public var errorCode: Int { get }
  • Error UserInfo

    Declaration

    Swift

    public var errorUserInfo: [String : Any] { get }