Enum near_primitives::errors::EpochError [−][src]
pub enum EpochError {
ThresholdError {
stake_sum: Balance,
num_seats: u64,
},
EpochOutOfBounds(EpochId),
MissingBlock(CryptoHash),
IOErr(String),
NotAValidator(AccountId, EpochId),
ShardingError(String),
}Variants
ThresholdError
Error calculating threshold from given stakes for given number of seats. Only should happened if calling code doesn’t check for integer value of stake > number of seats.
EpochOutOfBounds(EpochId)
Tuple Fields
0: EpochIdRequesting validators for an epoch that wasn’t computed yet.
MissingBlock(CryptoHash)
Tuple Fields
0: CryptoHashMissing block hash in the storage (means there is some structural issue).
IOErr(String)
Tuple Fields
0: StringError due to IO (DB read/write, serialization, etc.).
NotAValidator(AccountId, EpochId)
Given account ID is not a validator in the given epoch ID.
ShardingError(String)
Tuple Fields
0: StringError getting information for a shard
Trait Implementations
Performs the conversion.
This method tests for self and other values to be equal, and is used
by ==. Read more
This method tests for !=.
Auto Trait Implementations
impl RefUnwindSafe for EpochError
impl Send for EpochError
impl Sync for EpochError
impl Unpin for EpochError
impl UnwindSafe for EpochError
Blanket Implementations
Mutably borrows from an owned value. Read more