pub enum Error {
Show 16 variants
Aes,
OodleLZ_Decompress,
Io(Error),
Utf8(FromUtf8Error),
Utf16(FromUtf16Error),
IntoInner(IntoInnerError<BufWriter<Vec<u8>>>),
Encryption,
Compression,
Oodle,
Bool(u8),
Magic(u32),
Encrypted,
Parse,
Missing(String),
Version(u32),
Other(String),
}Expand description
the error type used by unpak
Variants§
Aes
key hash is an incorrect length
OodleLZ_Decompress
OodleLZ_Decompress returned 0
Io(Error)
std::io error
Utf8(FromUtf8Error)
error converting from utf8
Utf16(FromUtf16Error)
error converting from utf16
IntoInner(IntoInnerError<BufWriter<Vec<u8>>>)
error dereferencing bufwriter
Encryption
re-enable the encryption feature to read encrypted paks
Compression
re-enable the compression feature to read compressed paks
Oodle
enable the oodle feature to decompress oodle paks
Bool(u8)
failed to convert to boolean - normally a result of parsing with wrong version
Magic(u32)
read bad magic - normally a result of parsing with wrong version
Encrypted
pak is encrypted but no valid key was provided
Parse
pak could not be parsed with any version - make a github issue
Missing(String)
no entry found at the specified path
Version(u32)
parsing with wrong version - convert error to string to get correct version
Other(String)
any other error if you’re too lazy to have a function return custom error