Enum spl_token::error::TokenError[][src]

pub enum TokenError {
    NotRentExempt,
    InsufficientFunds,
    InvalidMint,
    MintMismatch,
    OwnerMismatch,
    FixedSupply,
    AlreadyInUse,
    InvalidNumberOfProvidedSigners,
    InvalidNumberOfRequiredSigners,
    UninitializedState,
    NativeNotSupported,
    NonNativeHasBalance,
    InvalidInstruction,
    InvalidState,
    Overflow,
    AuthorityTypeNotSupported,
    MintCannotFreeze,
    AccountFrozen,
    MintDecimalsMismatch,
}

Errors that may be returned by the Token program.

Variants

NotRentExempt

Lamport balance below rent-exempt threshold.

InsufficientFunds

Insufficient funds for the operation requested.

InvalidMint

Invalid Mint.

MintMismatch

Account not associated with this Mint.

OwnerMismatch

Owner does not match.

FixedSupply

This token’s supply is fixed and new tokens cannot be minted.

AlreadyInUse

The account cannot be initialized because it is already being used.

InvalidNumberOfProvidedSigners

Invalid number of provided signers.

InvalidNumberOfRequiredSigners

Invalid number of required signers.

UninitializedState

State is uninitialized.

NativeNotSupported

Instruction does not support native tokens

NonNativeHasBalance

Non-native account can only be closed if its balance is zero

InvalidInstruction

Invalid instruction

InvalidState

State is invalid for requested operation.

Overflow

Operation overflowed

AuthorityTypeNotSupported

Account does not support specified authority type.

MintCannotFreeze

This token mint cannot freeze accounts.

AccountFrozen

Account is frozen; all account operations will fail

MintDecimalsMismatch

Mint decimals mismatch between the client and mint

Trait Implementations

impl Clone for TokenError[src]

impl Debug for TokenError[src]

impl<T> DecodeError<T> for TokenError[src]

impl Display for TokenError[src]

impl Eq for TokenError[src]

impl Error for TokenError[src]

impl From<TokenError> for ProgramError[src]

impl FromPrimitive for TokenError[src]

impl PartialEq<TokenError> for TokenError[src]

impl PrintProgramError for TokenError[src]

impl StructuralEq for TokenError[src]

impl StructuralPartialEq for TokenError[src]

Auto Trait Implementations

impl RefUnwindSafe for TokenError

impl Send for TokenError

impl Sync for TokenError

impl Unpin for TokenError

impl UnwindSafe for TokenError

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T[src]

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 
[src]