ZipError

public enum ZipError: Error

Represents an error, which happened during processing ZIP container. It may indicate that either container is damaged or it might not be ZIP container at all.

  • Wrong either compressed or uncompressed size of a container’s entry.

    Declaration

    Swift

    case wrongSize
  • Computed checksum of entry’s data doesn’t match the value stored in the archive. Associated value of the error contains ZipEntry objects for all already processed entries:

    Declaration

    Swift

    case wrongCRC([ZipEntry])
  • Either entry’s comment or file name cannot be processed using UTF-8 encoding.

    Declaration

    Swift

    case wrongTextField