solcandy/error.rs
1use thiserror::Error;
2
3#[derive(Debug, Error)]
4pub enum SolcandyError {
5 #[error("Invalid candy version, unable to parse it properly.")]
6 InvalidCandyVersion,
7
8 #[error("Failed to fetch accounts from solana network.")]
9 FetchAccountsError,
10}
11
12pub type SolcandyResult<T> = Result<T, SolcandyError>;