DbCryptoApiError
public enum DbCryptoApiError : Swift.Error, Equatable, Hashable, Foundation.LocalizedError
extension DbCryptoApiError: Sendable
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 -
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 ) -
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 UnexpectedDbCryptoApiError(reason: String ) -
Declaration
Swift
public var errorDescription: String? { get }