Error

public enum Error : Swift.Error

An error that might occur when storing or retrieving values.

  • This error indicates that a value does not exists if it is tried to retrieved or removed.

    Declaration

    Swift

    case valueDoesNotExist
  • This error indicates that there is no value for a given key. Meaning that the value exists (in contrast to valueDoesNotExist) but that the byte array is empty. This should not happen in normal circumstances.

    Declaration

    Swift

    case noContent
  • This error indicates that the encrypted value is too short. It means that there is something of the message authentication code is missing, which is used for checking the integrity of the value, or something of the nonce is missing. Since the format is erroneous, there is no way to decrypt the value. This should not happen in normal circumstances.

    Declaration

    Swift

    case responseTooSmall
  • This error indicates that the encrypted value has been tampered with and the integrity of the message is violated.

    Declaration

    Swift

    case failedToDecrypt