rcc_aptos/
error.rs

1use thiserror::Error;
2
3#[derive(Error, Debug)]
4pub enum AptosError {
5    #[error("aptos transaction parse failed, reason: `{0}`")]
6    ParseFailed(String),
7    #[error("aptos transaction serialize failed, reason: `{0}`")]
8    SerializeFailed(String),
9}
10
11pub type Result<T> = std::result::Result<T, AptosError>;