ErrorType
public enum ErrorType : String
The different types of errors that LibForstaSwift can throw.
-
Unknown errors should only be thrown of no other, more descriptive error type exists
Declaration
Swift
case unknown = "Unknown"
-
The local storage implementation produced an error
Declaration
Swift
case storageError = "Storage"
-
A message was received that was previously decrypted, or is too old
Declaration
Swift
case duplicateMessage = "Duplicate message"
-
The message type does not match
Declaration
Swift
case invalidType = "Invalid type"
-
An invalid key produced an error
Declaration
Swift
case invalidKey = "Invalid key"
-
The initialization vector has the wrong length
Declaration
Swift
case invalidIV = "Invalid iv"
-
The (key) id is invalid
Declaration
Swift
case invalidId = "Invalid Id"
-
The authentication failed
Declaration
Swift
case invalidMac = "Invalid mac"
-
Invalid hash
Declaration
Swift
case invalidHash = "Invalid hash"
-
The message structure is invalid
Declaration
Swift
case invalidMessage = "Invalid message"
-
The length of a message or stored object is incorrect
Declaration
Swift
case invalidLength = "Invalid length"
-
A message from an older implementation of the protocol is received
Declaration
Swift
case legacyMessage = "Legacy message"
-
No valid session exists for the address
Declaration
Swift
case noSession = "No session"
-
The identity of the recipient is untrusted
Declaration
Swift
case untrustedIdentity = "Untrusted identity"
-
The signature of the message is invalid
Declaration
Swift
case invalidSignature = "Invalid signature"
-
A serialized record or message is not in valid protocol buffer format
Declaration
Swift
case invalidProtoBuf = "Invalid protoBuf"
-
The identity of two fingerprints is not equal
Declaration
Swift
case fPIdentityMismatch = "Fingerprint identity mismatch"
-
There is no crypto provider set
Declaration
Swift
case noCryptoProvider = "No crpyto provider"
-
Random bytes could not be created
Declaration
Swift
case noRandomBytes = "No random bytes"
-
There was an error calculating the HMAC of a message
Declaration
Swift
case hmacError = "HMAC error"
-
There was an error calculating a digest
Declaration
Swift
case digestError = "Digest error"
-
An error occured during encryption
Declaration
Swift
case encryptionError = "Encryption error"
-
An error occured during decryption
Declaration
Swift
case decryptionError = "Decryption error"
-
A JWT was malformed or expired
Declaration
Swift
case invalidJWT = "Invalid JWT"
-
Request failure
Declaration
Swift
case requestFailure = "Request failure"
-
Request rejected
Declaration
Swift
case requestRejected = "Request rejected"
-
A request response was malformed
Declaration
Swift
case malformedResponse = "Malformed response"
-
Necessary configuration was missing or wrong
Declaration
Swift
case configuration = "Configuration error"
-
A transmission failed
Declaration
Swift
case transmissionFailure = "Transmission failure"
-
Forsta Payload is invalid
Declaration
Swift
case invalidPayload = "Invalid payload"
-
Error
is due to a cancellationDeclaration
Swift
case canceled = "Canceled operation"