lighthouse/validator_client/src/error.rs

22 lines
403 B
Rust
Raw Normal View History

use slot_clock;
use error_chain::{
error_chain
};
error_chain! {
links { }
errors {
SlotClockError(e: slot_clock::SystemTimeSlotClockError) {
description("Error reading system time"),
display("SlotClockError: '{:?}'", e)
}
SystemTimeError(t: String ) {
description("Error reading system time"),
display("SystemTimeError: '{}'", t)
}
}
}