Enum libxivdat::dat_error::DATError [−][src]
pub enum DATError { BadEncoding(&'static str), BadHeader(&'static str), Overflow(&'static str), Underflow(&'static str), EndOfFile(&'static str), FileIO(Error), IncorrectType(&'static str), InvalidInput(&'static str), }
Expand description
Wrapper error for any error related to processing a binary DAT file.
Variants
BadEncoding(&'static str)
Attempted to read a byte stream as UTF-8 text when it didn’t contain valid UTF-8.
BadHeader(&'static str)
The header data is incorrect. The file is probably not a binary DAT file, but may be a plaintext DAT.
Overflow(&'static str)
Data provided exceeds the maximum length specified in the header or the maximum possible length.
Underflow(&'static str)
Data provided is shorter than the content_size specified in the header or the minimum possible length.
EndOfFile(&'static str)
Unexpectedly hit the EOF when attempting to read a block of data.
FileIO(Error)
Wrapper for various std::io::Error
errors. Represents an error reading or writing a
file on disk.
IncorrectType(&'static str)
Attempted to use a type-specific function on the incorrect DATType
InvalidInput(&'static str)
Invalid input for a function
Trait Implementations
Performs the conversion.
Performs the conversion.
Performs the conversion.
Auto Trait Implementations
impl !RefUnwindSafe for DATError
impl !UnwindSafe for DATError