solana_transaction_crawler/errors.rs
1use thiserror::Error;
2
3#[derive(Error, Debug)]
4pub enum CrawlError {
5 #[error("no account data found")]
6 MissingAccount(String),
7
8 #[error("RPC call failed with error: {0} for value: {1}")]
9 ClientError(String, String),
10
11 #[error("failed to parse string into Pubkey")]
12 PubkeyParseFailed(String),
13
14 #[error("Failed to parse signature: {0}")]
15 SignatureParseFailed(String),
16}