lllv_core/
errors.rs

1use thiserror::Error;
2
3#[derive(Error, Debug)]
4pub enum LllvError {
5    #[error("invalid header length")]
6    InvalidHeaderLen,
7    #[error("invalid magic")]
8    InvalidMagic,
9    #[error("invalid version")]
10    InvalidVersion,
11    #[error("mismatched_lengths")]
12    MismatchedLengths,
13    #[error("signature verification failed")]
14    BadSignature,
15    #[error("crypto error")]
16    Crypto,
17    #[error("serde error: {0}")]
18    Serde(String),
19}