DeviceIdentifierError
public enum DeviceIdentifierError : Error, LocalizedError, Sendable
This enum defines various errors that can occur during device identifier operations, such as key generation failures or public key extraction issues.
It conforms to the Error protocol, allowing it to be thrown and caught in error handling contexts.
The cases include:
- encryptionInitializationFailed: Indicates that the encryption initialization failed, which may prevent secure storage of keys in the keychain.
- keyGenerationFailed: Indicates that the key generation process failed, with an associated error.
- publicKeyExtractionFailed: Indicates that the public key could not be extracted from the private key.
- externalRepresentationFailed: Indicates that exporting the key to external representation failed, with an associated error.
- keychainItemNotFound: Indicates that the keychain item was not found.
- keychainUnexpectedData: Indicates that the data retrieved from the keychain was not as expected.
- keychainUnexpectedStatus: Indicates an unexpected status code from the keychain operation, with the associated
OSStatuscode.
-
Declaration
Swift
case encryptionInitializationFailed -
Declaration
Swift
case keyGenerationFailed(Error) -
Declaration
Swift
case publicKeyExtractionFailed -
Declaration
Swift
case externalRepresentationFailed(Error) -
Declaration
Swift
case keychainItemNotFound -
Declaration
Swift
case keychainUnexpectedData -
Declaration
Swift
case keychainUnexpectedStatus(OSStatus) -
Declaration
Swift
public var errorDescription: String? { get }
View on GitHub