Enum pallet_identity::pallet::Error
source · pub enum Error<T> {
Show 26 variants
TooManySubAccounts,
NotFound,
NotNamed,
EmptyIndex,
FeeChanged,
NoIdentity,
StickyJudgement,
JudgementGiven,
InvalidJudgement,
InvalidIndex,
InvalidTarget,
TooManyRegistrars,
AlreadyClaimed,
NotSub,
NotOwned,
JudgementForDifferentIdentity,
JudgementPaymentFailed,
InvalidSuffix,
NotUsernameAuthority,
NoAllocation,
InvalidSignature,
RequiresSignature,
InvalidUsername,
UsernameTaken,
NoUsername,
NotExpired,
// some variants omitted
}Expand description
The Error enum of this pallet.
Variants§
TooManySubAccounts
Too many subs-accounts.
NotFound
Account isn’t found.
NotNamed
Account isn’t named.
EmptyIndex
Empty index.
FeeChanged
Fee is changed.
NoIdentity
No identity found.
StickyJudgement
Sticky judgement.
JudgementGiven
Judgement given.
InvalidJudgement
Invalid judgement.
InvalidIndex
The index is invalid.
InvalidTarget
The target is invalid.
TooManyRegistrars
Maximum amount of registrars reached. Cannot add any more.
AlreadyClaimed
Account ID is already named.
NotSub
Sender is not a sub-account.
NotOwned
Sub-account isn’t owned by sender.
JudgementForDifferentIdentity
The provided judgement was for a different identity.
JudgementPaymentFailed
Error that occurs when there is an issue paying for judgement.
InvalidSuffix
The provided suffix is too long.
NotUsernameAuthority
The sender does not have permission to issue a username.
NoAllocation
The authority cannot allocate any more usernames.
InvalidSignature
The signature on a username was not valid.
RequiresSignature
Setting this username requires a signature, but none was provided.
InvalidUsername
The username does not meet the requirements.
UsernameTaken
The username is already taken.
NoUsername
The requested username does not exist.
NotExpired
The username cannot be forcefully removed because it can still be accepted.
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> 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,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T, Outer> IsWrappedBy<Outer> for T
impl<T, Outer> IsWrappedBy<Outer> for T
§impl<T> SaturatedConversion for T
impl<T> SaturatedConversion for T
§fn saturated_from<T>(t: T) -> Selfwhere
Self: UniqueSaturatedFrom<T>,
fn saturated_from<T>(t: T) -> Selfwhere
Self: UniqueSaturatedFrom<T>,
§fn saturated_into<T>(self) -> Twhere
Self: UniqueSaturatedInto<T>,
fn saturated_into<T>(self) -> Twhere
Self: UniqueSaturatedInto<T>,
T. Read moresource§impl<T, U> TryIntoKey<U> for Twhere
U: TryFromKey<T>,
impl<T, U> TryIntoKey<U> for Twhere
U: TryFromKey<T>,
type Error = <U as TryFromKey<T>>::Error
fn try_into_key(self) -> Result<U, <U as TryFromKey<T>>::Error>
§impl<S, T> UncheckedInto<T> for Swhere
T: UncheckedFrom<S>,
impl<S, T> UncheckedInto<T> for Swhere
T: UncheckedFrom<S>,
§fn unchecked_into(self) -> T
fn unchecked_into(self) -> T
unchecked_from.§impl<T, S> UniqueSaturatedInto<T> for S
impl<T, S> UniqueSaturatedInto<T> for S
§fn unique_saturated_into(self) -> T
fn unique_saturated_into(self) -> T
T.