mirror of
https://github.com/logos-blockchain/lssa-zkvm-testing.git
synced 2026-01-07 15:53:12 +00:00
17 lines
359 B
Rust
17 lines
359 B
Rust
#[derive(Debug)]
|
|
pub enum Error {
|
|
NotFound,
|
|
BadInput,
|
|
}
|
|
|
|
impl std::fmt::Display for Error {
|
|
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
|
match self {
|
|
Error::NotFound => write!(f, "Not found"),
|
|
Error::BadInput => write!(f, "Bad input"),
|
|
}
|
|
}
|
|
}
|
|
|
|
impl std::error::Error for Error {}
|