1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// Copyright 2021-2023 Protocol Labs
// SPDX-License-Identifier: Apache-2.0, MIT
use thiserror::Error;

#[derive(PartialEq, Eq, Clone, Debug, Error)]
pub enum Error {
    #[error("bitfield not minimally encoded")]
    NotMinimal,
    #[error("bitfield specifies an unsupported version")]
    UnsupportedVersion,
    #[error("bitfield overflows 2^63-1")]
    RLEOverflow,
    #[error("invalid varint")]
    InvalidVarint,
}