MechanismError
public enum MechanismError : FRError
extension MechanismError: CustomNSError
MechanismError represents an error captured by FRAuthenticator SDK for any operations related to Mechanism class
- invalidQRCode: Fail to parse or validate given QR Code
- invalidType: Given QR Code does not have valid type
- missingInformation: Given QR Code does not contain necessary information to construct Mechanism object
- invalidInformation: Given QR Code contains some invalid information to construct Mechanism object
-
Declaration
Swift
case invalidQRCode
-
Declaration
Swift
case invalidType
-
Declaration
Swift
case missingInformation(String)
-
Declaration
Swift
case invalidInformation(String)
-
Declaration
Swift
case alreadyExists(String)
-
Declaration
Swift
case failedToUpdateInformation(String)
-
Unique error code for given error
Declaration
Swift
var code: Int { get }
-
Parses MechanismError value into integer error code
Declaration
Swift
func parseErrorCode() -> Int
Return Value
Int value of unique error code
-
An error domain for MechanismError
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 }