Skip to main content

xz_rs/block/
error.rs

1use thiserror::Error;
2
3#[derive(Error, Debug)]
4pub enum BlockDecodeError {
5    #[error("Invalid block header")]
6    InvalidHeader,
7
8    #[error("Invalid block footer")]
9    InvalidIndex,
10
11    #[error("Reserved block flags")]
12    ReservedBlockFlags,
13
14    #[error("Invalid variable-length integer")]
15    InvalidVarInt,
16}