ArchiveError
public enum ArchiveError : Error
An error that occurs during reading, creating or updating a ZIP file.
-
Thrown when an archive file is either damaged or inaccessible.
Declaration
Swift
case unreadableArchive
-
Thrown when an archive is either opened with AccessMode.read or the destination file is unwritable.
Declaration
Swift
case unwritableArchive
-
Thrown when the path of an
Entry
cannot be stored in an archive.Declaration
Swift
case invalidEntryPath
-
Thrown when an
Entry
can’t be stored in the archive with the proposed compression method.Declaration
Swift
case invalidCompressionMethod
-
Thrown when the stored checksum of an
Entry
doesn’t match the checksum during reading.Declaration
Swift
case invalidCRC32
-
Thrown when an extract, add or remove operation was canceled.
Declaration
Swift
case cancelledOperation
-
Thrown when an extract operation was called with zero or negative
bufferSize
parameter.Declaration
Swift
case invalidBufferSize
-
Thrown when uncompressedSize/compressedSize exceeds
Int64.max
(Imposed by file API).Declaration
Swift
case invalidEntrySize
-
Thrown when the offset of local header data exceeds
Int64.max
(Imposed by file API).Declaration
Swift
case invalidLocalHeaderDataOffset
-
Thrown when the size of local header exceeds
Int64.max
(Imposed by file API).Declaration
Swift
case invalidLocalHeaderSize
-
Thrown when the offset of central directory exceeds
Int64.max
(Imposed by file API).Declaration
Swift
case invalidCentralDirectoryOffset
-
Thrown when the size of central directory exceeds
UInt64.max
(Imposed by ZIP specification).Declaration
Swift
case invalidCentralDirectorySize
-
Thrown when number of entries in central directory exceeds
UInt64.max
(Imposed by ZIP specification).Declaration
Swift
case invalidCentralDirectoryEntryCount
-
Thrown when an archive does not contain the required End of Central Directory Record.
Declaration
Swift
case missingEndOfCentralDirectoryRecord