2019-03-25 05:50:15 +00:00
|
|
|
use slot_clock;
|
|
|
|
|
2019-05-31 07:32:20 +00:00
|
|
|
use error_chain::{
|
|
|
|
error_chain
|
|
|
|
};
|
2019-03-25 05:50:15 +00:00
|
|
|
|
|
|
|
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)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|