Skip to main content

apibara_dna_protocol/
error.rs

1use snafu::Snafu;
2
3#[derive(Debug, Snafu)]
4#[snafu(visibility(pub))]
5pub enum DecodeError {
6    #[snafu(display("Size too big"))]
7    SizeTooBig,
8    #[snafu(display("Missing 0x prefix"))]
9    Missing0xPrefix,
10    #[snafu(display("Failed to decode from hex"))]
11    DecodeFromHex { source: hex::FromHexError },
12}