Files
SWCompression/Sources/7zError.swift
T
2017-07-30 18:36:07 +03:00

44 lines
1.1 KiB
Swift

// Copyright (c) 2017 Timofey Solomko
// Licensed under MIT License
//
// See LICENSE for license information
import Foundation
// TODO: Check if every error is used.
public enum SevenZipError: Error {
case wrongSignature
case wrongVersion
case wrongStartHeaderCRC
case wrongHeaderSize
case wrongPropertyID
case wrongHeaderCRC
case wrongExternal
case reservedCodecFlags
case unknownNumFolders
case wrongEnd
case externalNotSupported
case altMethodsNotSupported
case wrongStreamsNumber
case multiStreamNotSupported
case compressionNotSupported
case wrongDataSize
case wrongCRC
case wrongCoderProperties
case noPackInfo
case wrongFileProperty
case wrongFileNameLength
case wrongFileNames
case startPosNotSupported
case incompleteProperty
case additionalStreamsNotSupported
case noFileSize
case notEnoughFolders
case notEnoughStreams
case noStreamFound
case noPackInfoFound
case streamOverread
case dataIsUnavailable
case encryptionNotSupported
}