thru_base/
bintrie_error.rs1use thiserror::Error;
2
3#[derive(Error, Debug)]
5pub enum BinTrieError {
6 #[error("Key already exists")]
7 KeyExists,
8 #[error("Key not found")]
9 KeyNotFound,
10 #[error("Invalid proof")]
11 InvalidProof,
12 #[error("Existing proof")]
13 ExistingProof,
14 #[error("Bad proof")]
15 BadProof,
16 #[error("Invalid hash length")]
17 InvalidHashLength,
18 #[error("Invalid pubkey length")]
19 InvalidPubkeyLength,
20 #[error("Proof verification failed")]
21 ProofVerificationFailed,
22}