1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
#![deny(unsafe_code)] use thiserror::Error; #[derive(Debug, Error)] pub enum Error { #[error("Unexpected error occurred")] Generic, #[error("Transaction is closed")] TxClosed, #[error("Transaction is not writable")] TxNotWritable, }