mirror of
https://github.com/logos-blockchain/lssa-zkvm-testing.git
synced 2026-01-03 22:03:10 +00:00
16 lines
361 B
Rust
16 lines
361 B
Rust
#[derive(Debug)]
|
|
pub enum Error {
|
|
/// For simplicity, this POC uses a generic error
|
|
Generic,
|
|
}
|
|
|
|
impl std::fmt::Display for Error {
|
|
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
|
match self {
|
|
Error::Generic => write!(f, "An unexpected error occurred"),
|
|
}
|
|
}
|
|
}
|
|
|
|
impl std::error::Error for Error {}
|