Enumerations
The following enumerations are available globally.
- 
                  
                  
Declaration
Swift
@objc(VSRRatchetClientError) public enum RatchetClientError : Int, LocalizedError - 
                  
                  
KeychainLongTermKeysStorage errors
- invalidKeyId: Invalid key id
 - invalidMeta: Invalid key meta
 
Declaration
Swift
@objc(VSRKeychainLongTermKeysStorageError) public enum KeychainLongTermKeysStorageError : Int, LocalizedError - 
                  
                  
Represents error of
SQLiteCardStorage- inconsistentDb: Storage turned into inconsistency state
 - keyNotFound: Key not found
 
Declaration
Swift
@objc(VSRSQLiteCardStorageError) public enum SQLiteCardStorageError : Int, LocalizedError - 
                  
                  
Declaration
Swift
@objc(VSRKeysRotatorError) public enum KeysRotatorError : Int, LocalizedError - 
                  
                  
SecureChat errors
- sessionAlreadyExists: Session with this participant already exists
 - wrongIdentityPublicKeyCrypto: PublicKey is not VirgilPublicKey
 - identityKeyDoesntMatch: Identity key in the Card and on Ratchet Cloud doesn’t match
 - invalidLongTermKeySignature: Long-term key signature is invalid
 - invalidMessageType: Message type should be .prekey
 - invalidKeyType: Invalid key type
 - publicKeysSetsMismatch: PublicKeysSets mismatch
 - invalidSessionIdLen: Session Id should be 32-byte
 - invalidCardId: Invalid card id
 - sessionIdMismatch: Session id mismatch
 
Declaration
Swift
@objc(VSRSecureChatError) public enum SecureChatError : Int, LocalizedError - 
                  
                  
Declaration
Swift
@objc(VSRSecureSessionError) public enum SecureSessionError : Int, LocalizedError 
        Enumerations  Reference