SecureChatError
@objc(VSRSecureChatError)
public enum SecureChatError : 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
-
Undocumented
Declaration
Swift
case sessionAlreadyExists = 1
-
Undocumented
Declaration
Swift
case wrongIdentityPublicKeyCrypto = 2
-
Undocumented
Declaration
Swift
case identityKeyDoesntMatch = 3
-
Undocumented
Declaration
Swift
case invalidLongTermKeySignature = 4
-
Undocumented
Declaration
Swift
case invalidMessageType = 5
-
Undocumented
Declaration
Swift
case invalidKeyType = 6
-
Undocumented
Declaration
Swift
case publicKeysSetsMismatch = 7
-
Undocumented
Declaration
Swift
case invalidSessionIdLen = 8
-
Undocumented
Declaration
Swift
case invalidCardId = 9
-
Undocumented
Declaration
Swift
case sessionIdMismatch = 10
-
Human-readable localized description
Declaration
Swift
public var errorDescription: String { get }