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 start of the central directory exceeds
UINT32_MAX
Declaration
Swift
case invalidStartOfCentralDirectoryOffset
-
Thrown when an archive does not contain the required End of Central Directory Record.
Declaration
Swift
case missingEndOfCentralDirectoryRecord
-
Thrown when an extract, add or remove operation was canceled.
Declaration
Swift
case cancelledOperation