Skip to main content

cuprate_blockchain/
error.rs

1pub type DbResult<T> = Result<T, BlockchainError>;
2
3/// A blockchain error.
4#[derive(thiserror::Error, Debug)]
5pub enum BlockchainError {
6    #[error(transparent)]
7    IO(#[from] std::io::Error),
8    #[error(transparent)]
9    Fjall(#[from] fjall::Error),
10    #[error("not found")]
11    NotFound,
12}