Enum pallet_staking::Error
source · pub enum Error<T> {
Show 27 variants
NotController,
NotStash,
AlreadyBonded,
AlreadyPaired,
EmptyTargets,
DuplicateIndex,
InvalidSlashIndex,
InsufficientBond,
NoMoreChunks,
NoUnlockChunk,
FundedTarget,
InvalidEraToReward,
InvalidNumberOfNominations,
NotSortedAndUnique,
AlreadyClaimed,
InvalidPage,
IncorrectHistoryDepth,
IncorrectSlashingSpans,
BadState,
TooManyTargets,
BadTarget,
CannotChillOther,
TooManyNominators,
TooManyValidators,
CommissionTooLow,
BoundNotMet,
ControllerDeprecated,
// some variants omitted
}
Expand description
The Error
enum of this pallet.
Variants§
NotController
Not a controller account.
NotStash
Not a stash account.
AlreadyBonded
Stash is already bonded.
AlreadyPaired
Controller is already paired.
EmptyTargets
Targets cannot be empty.
DuplicateIndex
Duplicate index.
InvalidSlashIndex
Slash record index out of bounds.
InsufficientBond
Cannot have a validator or nominator role, with value less than the minimum defined by
governance (see MinValidatorBond
and MinNominatorBond
). If unbonding is the
intention, chill
first to remove one’s role as validator/nominator.
NoMoreChunks
Can not schedule more unlock chunks.
NoUnlockChunk
Can not rebond without unlocking chunks.
FundedTarget
Attempting to target a stash that still has funds.
InvalidEraToReward
Invalid era to reward.
InvalidNumberOfNominations
Invalid number of nominations.
NotSortedAndUnique
Items are not sorted and unique.
AlreadyClaimed
Rewards for this era have already been claimed for this validator.
InvalidPage
No nominators exist on this page.
IncorrectHistoryDepth
Incorrect previous history depth input provided.
IncorrectSlashingSpans
Incorrect number of slashing spans provided.
BadState
Internal state has become somehow corrupted and the operation cannot continue.
TooManyTargets
Too many nomination targets supplied.
BadTarget
A nomination target was supplied that was blocked or otherwise not a validator.
CannotChillOther
The user has enough bond and thus cannot be chilled forcefully by an external person.
TooManyNominators
There are too many nominators in the system. Governance needs to adjust the staking settings to keep things safe for the runtime.
TooManyValidators
There are too many validator candidates in the system. Governance needs to adjust the staking settings to keep things safe for the runtime.
CommissionTooLow
Commission is too low. Must be at least MinCommission
.
BoundNotMet
Some bound is not met.
ControllerDeprecated
Used when attempting to use deprecated controller account logic.
Trait Implementations§
source§impl<T> Decode for Error<T>
impl<T> Decode for Error<T>
source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy
) -> Result<Self, Error>
fn decode<__CodecInputEdqy: Input>( __codec_input_edqy: &mut __CodecInputEdqy ) -> Result<Self, Error>
source§fn decode_into<I>(
input: &mut I,
dst: &mut MaybeUninit<Self>
) -> Result<DecodeFinished, Error>where
I: Input,
fn decode_into<I>(
input: &mut I,
dst: &mut MaybeUninit<Self>
) -> Result<DecodeFinished, Error>where
I: Input,
source§impl<T> Encode for Error<T>
impl<T> Encode for Error<T>
source§fn size_hint(&self) -> usize
fn size_hint(&self) -> usize
source§fn encode_to<__CodecOutputEdqy: Output + ?Sized>(
&self,
__codec_dest_edqy: &mut __CodecOutputEdqy
)
fn encode_to<__CodecOutputEdqy: Output + ?Sized>( &self, __codec_dest_edqy: &mut __CodecOutputEdqy )
source§fn using_encoded<R, F>(&self, f: F) -> R
fn using_encoded<R, F>(&self, f: F) -> R
source§fn encoded_size(&self) -> usize
fn encoded_size(&self) -> usize
source§impl<T> PalletError for Error<T>
impl<T> PalletError for Error<T>
source§const MAX_ENCODED_SIZE: usize = 1usize
const MAX_ENCODED_SIZE: usize = 1usize
impl<T> EncodeLike for Error<T>
Auto Trait Implementations§
impl<T> Freeze for Error<T>
impl<T> RefUnwindSafe for Error<T>where
T: RefUnwindSafe,
impl<T> Send for Error<T>where
T: Send,
impl<T> Sync for Error<T>where
T: Sync,
impl<T> Unpin for Error<T>where
T: Unpin,
impl<T> UnwindSafe for Error<T>where
T: UnwindSafe,
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> CheckedConversion for T
impl<T> CheckedConversion for T
source§impl<T> DecodeLimit for Twhere
T: Decode,
impl<T> DecodeLimit for Twhere
T: Decode,
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§impl<T, Outer> IsWrappedBy<Outer> for T
impl<T, Outer> IsWrappedBy<Outer> for T
source§impl<T> SaturatedConversion for T
impl<T> SaturatedConversion for T
source§fn saturated_from<T>(t: T) -> Selfwhere
Self: UniqueSaturatedFrom<T>,
fn saturated_from<T>(t: T) -> Selfwhere
Self: UniqueSaturatedFrom<T>,
source§fn saturated_into<T>(self) -> Twhere
Self: UniqueSaturatedInto<T>,
fn saturated_into<T>(self) -> Twhere
Self: UniqueSaturatedInto<T>,
T
. Read moresource§impl<S, T> UncheckedInto<T> for Swhere
T: UncheckedFrom<S>,
impl<S, T> UncheckedInto<T> for Swhere
T: UncheckedFrom<S>,
source§fn unchecked_into(self) -> T
fn unchecked_into(self) -> T
unchecked_from
.source§impl<T, S> UniqueSaturatedInto<T> for S
impl<T, S> UniqueSaturatedInto<T> for S
source§fn unique_saturated_into(self) -> T
fn unique_saturated_into(self) -> T
T
.