pub enum Error {
Show 15 variants
IOError(Error),
FromUtf8Error(FromUtf8Error),
SliceError(TryFromSliceError),
LinkTextEncoding,
MissingMagic,
MissingParent(u32),
UnexpectedEof,
UnsupportedVersion,
UnsupportedHeader,
UnsupportedCompAlgo(u8),
UnsupportedEncAlgo(u8),
UnsupportedKeyAlgo(u8),
MissingTag(String),
Usage(String),
InternalError(String),
}
Expand description
This type represents all possible errors that can occur within this crate.
Variants§
IOError(Error)
Error occurred during IO related operation.
FromUtf8Error(FromUtf8Error)
Error occurred decoding a UTF-8 string from bytes.
SliceError(TryFromSliceError)
Error occurred attempting to manipulate a slice.
LinkTextEncoding
The symbolic link bytes were not decipherable.
MissingMagic
File header lacks the initial E,X,A,F
bytes.
MissingParent(u32)
File/link entry referred to an unknown parent.
UnexpectedEof
Reached the end of file before reading all of the content.
UnsupportedVersion
Version of EXAF not currently supported by this crate.
UnsupportedHeader
Encountered and entry header that was not recognized.
UnsupportedCompAlgo(u8)
Compression algorithm in archive is not supported.
UnsupportedEncAlgo(u8)
Encryption algorithm in archive is not supported.
UnsupportedKeyAlgo(u8)
Key derivation function in archive is not supported.
MissingTag(String)
A header was missing a required tag row.
Usage(String)
A usage error
InternalError(String)
An unexpected error occurred that would otherwise have been a panic.