AccountError
public enum AccountError : FRError
extension AccountError: CustomNSError
AccountError represents an error captured by FRAuthenticator SDK for any operations related to Account class
- accountLocked: Operation cannot be completed, Account is locked
- failToLockMissingPolicyName: Missing or invalid name for the given Policy
- failToLockInvalidPolicy: Given policy was not attached during Account registration.
- failToLockAccountAlreadyLocked: Given Account is already locked
- failToUnlockAccountNotLocked: Given Account is not locked
- failToRegisterPolicyViolation: Account cannot be registered on the device due to policy violation
-
Declaration
Swift
case accountLocked(String)
-
Declaration
Swift
case failToLockMissingPolicyName
-
Declaration
Swift
case failToLockInvalidPolicy
-
Declaration
Swift
case failToLockAccountAlreadyLocked
-
Declaration
Swift
case failToUnlockAccountNotLocked
-
Declaration
Swift
case failToRegisterPolicyViolation(String)
-
Unique error code for given error
Declaration
Swift
var code: Int { get }
-
Parses AccountError value into integer error code
Declaration
Swift
func parseErrorCode() -> Int
Return Value
Int value of unique error code
-
An error domain for AccountError
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 }