#[repr(u32)]
pub enum ErrorCode {
UnauthorizedNotForeman,
GaugeEpochCannotBeZero,
GaugeWrongEpoch,
NextEpochNotReached,
CannotVoteMustReset,
CannotVoteGaugeDisabled,
VoteAlreadyCommitted,
CannotCommitGaugeDisabled,
EpochGaugeNotVoting,
WeightSeqnoChanged,
EpochClosed,
AllocatedPowerMustBeZero,
}
Expand description
Errors.
Variants
UnauthorizedNotForeman
GaugeEpochCannotBeZero
GaugeWrongEpoch
NextEpochNotReached
CannotVoteMustReset
CannotVoteGaugeDisabled
VoteAlreadyCommitted
CannotCommitGaugeDisabled
EpochGaugeNotVoting
WeightSeqnoChanged
EpochClosed
AllocatedPowerMustBeZero
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for ErrorCode
impl UnwindSafe for ErrorCode
Blanket Implementations
pub default fn example() -> T
Mutably borrows from an owned value. Read more