ccip_read_server/
errors.rs

1//use ethers_providers::{Middleware, MiddlewareError};
2use thiserror::Error;
3
4/// Handle CCIP-Read middleware specific errors.
5#[derive(Error, Debug)]
6pub enum CCIPReadMiddlewareError /*<M: Middleware>*/ {
7    #[error("Unknown function")]
8    UnknownFunction(#[from] ethers_core::abi::Error),
9
10    #[error("Parsing error")]
11    Parsing(#[from] serde_json::Error),
12
13    #[error("Abi error")]
14    Abi(#[from] ethers_core::abi::AbiError),
15
16    #[error("Parse bytes error")]
17    ParseBytes(#[from] ethers_core::types::ParseBytesError),
18}