Enumerations

The following enumerations are available globally.

  • Declares client error types and codes

    • constructingUrl: constructing url of endpoint failed
    See more

    Declaration

    Swift

    @objc(VSRRatchetClientError)
    public enum RatchetClientError : Int, LocalizedError
  • KeychainLongTermKeysStorage errors

    • invalidKeyId: Invalid key id
    • invalidMeta: Invalid key meta
    See more

    Declaration

    Swift

    @objc(VSRKeychainLongTermKeysStorageError)
    public enum KeychainLongTermKeysStorageError : Int, LocalizedError
  • Represents error of SQLiteCardStorage

    • inconsistentDb: Storage turned into inconsistency state
    • keyNotFound: Key not found
    See more

    Declaration

    Swift

    @objc(VSRSQLiteCardStorageError)
    public enum SQLiteCardStorageError : Int, LocalizedError
  • KeysRotator errors

    • concurrentRotation: concurrent rotation is not allowed
    See more

    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
    See more

    Declaration

    Swift

    @objc(VSRSecureChatError)
    public enum SecureChatError : Int, LocalizedError
  • SecureSession errors

    • invalidUtf8String: invalid conversion to/from utf-8 string
    See more

    Declaration

    Swift

    @objc(VSRSecureSessionError)
    public enum SecureSessionError : Int, LocalizedError