heliosphere_core/error.rs
1/// Error type
2#[derive(Debug, Clone)]
3pub enum Error {
4 /// Invalid address bytes or address string
5 InvalidAddress,
6 /// Invalid transaction id
7 InvalidTransactionId,
8 /// Invalid block id
9 InvalidBlockId,
10}
11
12impl core::fmt::Display for Error {
13 fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result {
14 write!(f, "{:?}", self)
15 }
16}