Enum kaitai::KaitaiError [−][src]
pub enum KaitaiError { EofBeforeTerminator(char), UnexpectedContents { actual: Vec<u8>, expected: Vec<u8>, }, IoError(Error), }
Expand description
Enum representing the potential errors emitted by this crate.
Variants
Returned by the read_byte_term
function in KaitaiStream
when the cursor reaches the end of the buffer before the terminator is reached. This should
not necessarily be treated as an error but it should be differentiated from an
IoError
.
Tuple Fields of EofBeforeTerminator
0: char
Returned by the ensure_fixed_contents
function in KaitaiStream
when the contents of the
file don’t match the expected value.
Fields of UnexpectedContents
A generic IO error.
Tuple Fields of IoError
0: Error