SecureStorageError
public enum SecureStorageError : Error
extension SecureStorageError: SAPError
Enum which covers all Errors occuring in the SecureStorage component.
-
Occurs if the secure store could not be opened because something went wrong. Note: If the backing store is a sqlite3 database, the error codes correspond to the ones in the following list https://www.sqlite.org/c3ref/c_abort.html.
Declaration
Swift
case openFailed(code: Int, message: String)
-
Occurs if the secure store has been closed.
Declaration
Swift
case closed
-
Occurs if the secure store could not be opened due to a wrong encryption key or due to an error while setting the key.
Declaration
Swift
case authenticationFailed(message: String)
-
Occurs if the enryption key could not be changed. Note: If the backing store is a sqlite3 database, the error codes correspond to sqlite3 error codes in the following list https://www.sqlite.org/c3ref/c_abort.html.
Declaration
Swift
case encryptionKeyChangeFailed(code: Int, message: String)
-
Occurs if a value could not be decoded to the specified type successfully.
Declaration
Swift
case typeConversionFailed
-
Occurs if the underlying backing store (e.g. the database) has any errors. Note: If the backing store is a sqlite3 database, the error codes correspond to sqlite3 error codes in the following list https://www.sqlite.org/c3ref/c_abort.html.
Declaration
Swift
case backingStoreError(code: Int, message: String)
-
Message describing the error
Declaration
Swift
public var description: String { get }
-
A textual representation of this instance, suitable for debugging.
Declaration
Swift
public var debugDescription: String { get }
-
A localized message describing what error occurred.
Declaration
Swift
public var errorDescription: String? { get }
-
A localized message describing the reason for the failure.
Declaration
Swift
public var failureReason: String? { get }