LoginsApiError
public enum LoginsApiError : Swift.Error
extension LoginsApiError: Equatable, Hashable
extension LoginsApiError: Foundation.LocalizedError
These are the errors returned by our public API.
-
NSS not initialized.
Declaration
Swift
case NssUninitialized -
NSS error during authentication
Declaration
Swift
case NssAuthenticationError(reason: String ) -
error during authentication (in PrimaryPasswordAuthenticator)
Declaration
Swift
case AuthenticationError(reason: String ) -
authentication has been cancelled.
Declaration
Swift
case AuthenticationCanceled -
The login data supplied is invalid. The reason will indicate what’s wrong with it.
Declaration
Swift
case InvalidRecord(reason: String ) -
Asking to do something with a guid which doesn’t exist.
Declaration
Swift
case NoSuchRecord(reason: String ) -
Encryption key is missing.
Declaration
Swift
case MissingKey -
Encryption key is not valid.
Declaration
Swift
case InvalidKey -
encryption failed
Declaration
Swift
case EncryptionFailed(reason: String ) -
decryption failed
Declaration
Swift
case DecryptionFailed(reason: String ) -
An operation was interrupted at the request of the consuming app.
Declaration
Swift
case Interrupted(reason: String ) -
Sync reported that authentication failed and the user should re-enter their FxA password.
Declaration
Swift
case SyncAuthInvalid(reason: String ) -
something internal went wrong which doesn’t have a public error value because the consuming app can not reasonably take any action to resolve it. The underlying error will have been logged and reported. (ideally would just be
Unexpected, but that would be a breaking change)Declaration
Swift
case UnexpectedLoginsApiError(reason: String ) -
Declaration
Swift
public var errorDescription: String? { get }