tenzro_ledger/error.rs
1use thiserror::Error;
2
3/// Errors that can occur in the Tenzro Ledger system
4#[derive(Error, Debug)]
5pub enum LedgerError {
6 /// Errors related to transaction operations
7 #[error("Transaction error: {0}")]
8 TransactionError(String),
9
10 /// Errors related to cryptographic operations
11 #[error("Crypto error: {0}")]
12 CryptoError(String),
13
14 /// Errors related to hardware security operations
15 #[error("Hardware error: {0}")]
16 HardwareError(String),
17}
18
19/// Result type for Tenzro Ledger operations
20pub type Result<T> = std::result::Result<T, LedgerError>;