orml_utilities/offchain_worker/
mod.rs1#[derive(PartialEq, Eq)]
3pub enum OffchainErr {
4 OffchainStore,
5 SubmitTransaction,
6 NotValidator,
7 OffchainLock,
8}
9
10impl sp_std::fmt::Debug for OffchainErr {
11 fn fmt(&self, fmt: &mut sp_std::fmt::Formatter) -> sp_std::fmt::Result {
12 match *self {
13 OffchainErr::OffchainStore => write!(fmt, "Failed to manipulate offchain store"),
14 OffchainErr::SubmitTransaction => write!(fmt, "Failed to submit transaction"),
15 OffchainErr::NotValidator => write!(fmt, "Is not validator"),
16 OffchainErr::OffchainLock => write!(fmt, "Failed to manipulate offchain lock"),
17 }
18 }
19}