XZError
public enum XZError: Error
Represents an error, which happened during unarchiving XZ archive. It may indicate that either archive is damaged or it might not be XZ archive at all.
-
Either ‘magic’ number in header or footer isn’t equal to a predefined value.
Declaration
Swift
case wrongMagic
-
One of the fields in archive has an incorrect value.
Declaration
Swift
case wrongFieldValue
-
One of the reserved fields in archive has an unexpected value, which can also mean (apart from damaged archive), that archive uses a newer version of XZ format.
Declaration
Swift
case fieldReservedValue
-
Checksum of one of the fields of archive doesn’t match the value stored in archive.
Declaration
Swift
case wrongInfoCRC
-
Filter used in archvie is unsupported.
Declaration
Swift
case wrongFilterID
-
Archive uses SHA-256 checksum which is unsupported.
Declaration
Swift
case checkTypeSHA256
-
Either size of decompressed data isn’t equal to the one specified in archive or amount of compressed data read is different from the one stored in archive.
Declaration
Swift
case wrongDataSize
-
Computed checksum of uncompressed data doesn’t match the value stored in the archive. Associated value of the error contains already decompressed data.
Declaration
Swift
case wrongCheck(Data)
-
Padding (null-bytes appended to an archive’s structure) is incorrect.
Declaration
Swift
case wrongPadding
-
Either null byte encountered or exceeded maximum amount bytes during reading multi byte number.
Declaration
Swift
case multiByteIntegerError
View on GitHub
XZError Enum Reference