pub enum TokenError {
Show 69 variants
InvalidInstructionData,
InvalidAccountData,
ArithmeticOverflow,
HashComputationError,
InvalidExtensionData,
MissingMintAuthority,
MissingFreezeAuthority,
InvalidMetadataPointer,
InvalidTokenMetadata,
InsufficientSupply,
AccountFrozen,
InvalidProof,
AddressDerivationFailed,
UnsupportedExtension,
TooManyExtensions,
InvalidRootIndex,
DataSizeExceeded,
InvalidCompressionMode,
CompressInsufficientFunds,
SysvarAccessError,
CompressedTokenAccountTlvUnimplemented,
InputAccountsLamportsLengthMismatch,
OutputAccountsLamportsLengthMismatch,
InvalidTokenDataVersion,
InstructionDataExpectedMintAuthority,
ZeroCopyExpectedMintAuthority,
InstructionDataExpectedFreezeAuthority,
ZeroCopyExpectedFreezeAuthority,
InvalidAuthorityType,
ExpectedMintSignerAccount,
HasherError(HasherError),
ZeroCopyError(ZeroCopyError),
CompressedAccountError(CompressedAccountError),
InvalidTokenMetadataVersion,
InvalidExtensionConfig,
InstructionDataExpectedDelegate,
ZeroCopyExpectedDelegate,
UnsupportedTlvExtensionType,
InvalidAccountState,
BorshFailed,
TooManyInputAccounts,
TooManyAdditionalMetadata,
DuplicateMetadataKey,
TooManySeeds(usize),
WriteTopUpExceedsMaximum,
MaxTopUpExceeded,
InvalidMintOwner,
MintNotInitialized,
MintBorrowFailed,
MintDeserializationFailed,
CompressedOnlyBlocksTransfer,
OutTlvOutputCountMismatch,
InLamportsUnimplemented,
OutLamportsUnimplemented,
TlvExtensionLengthMismatch,
InvalidAccountType,
DuplicateCompressionIndex,
DecompressDestinationNotFresh,
MissingCompressibleExtension,
DecompressDestinationMismatch,
MintMismatch,
DecompressDelegatedAmountWithoutDelegate,
DecompressWithheldFeeWithoutExtension,
MissingPayer,
BorrowFailed,
InvalidTokenOwner,
DecompressAmountMismatch,
CompressionIndexOutOfBounds,
InvalidAtaDerivation,
}Variants§
InvalidInstructionData
InvalidAccountData
ArithmeticOverflow
HashComputationError
InvalidExtensionData
MissingMintAuthority
MissingFreezeAuthority
InvalidMetadataPointer
InvalidTokenMetadata
InsufficientSupply
AccountFrozen
InvalidProof
AddressDerivationFailed
UnsupportedExtension
TooManyExtensions
InvalidRootIndex
DataSizeExceeded
InvalidCompressionMode
CompressInsufficientFunds
SysvarAccessError
CompressedTokenAccountTlvUnimplemented
InputAccountsLamportsLengthMismatch
OutputAccountsLamportsLengthMismatch
InvalidTokenDataVersion
InstructionDataExpectedMintAuthority
ZeroCopyExpectedMintAuthority
InstructionDataExpectedFreezeAuthority
ZeroCopyExpectedFreezeAuthority
InvalidAuthorityType
ExpectedMintSignerAccount
HasherError(HasherError)
ZeroCopyError(ZeroCopyError)
CompressedAccountError(CompressedAccountError)
InvalidTokenMetadataVersion
InvalidExtensionConfig
InstructionDataExpectedDelegate
ZeroCopyExpectedDelegate
UnsupportedTlvExtensionType
InvalidAccountState
BorshFailed
TooManyInputAccounts
TooManyAdditionalMetadata
DuplicateMetadataKey
TooManySeeds(usize)
WriteTopUpExceedsMaximum
MaxTopUpExceeded
InvalidMintOwner
MintNotInitialized
MintBorrowFailed
MintDeserializationFailed
CompressedOnlyBlocksTransfer
OutTlvOutputCountMismatch
InLamportsUnimplemented
OutLamportsUnimplemented
TlvExtensionLengthMismatch
InvalidAccountType
DuplicateCompressionIndex
DecompressDestinationNotFresh
MissingCompressibleExtension
DecompressDestinationMismatch
MintMismatch
DecompressDelegatedAmountWithoutDelegate
DecompressWithheldFeeWithoutExtension
MissingPayer
BorrowFailed
InvalidTokenOwner
DecompressAmountMismatch
CompressionIndexOutOfBounds
InvalidAtaDerivation
Trait Implementations§
Source§impl Debug for TokenError
impl Debug for TokenError
Source§impl Display for TokenError
impl Display for TokenError
Source§impl Error for TokenError
impl Error for TokenError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl From<CompressedAccountError> for TokenError
impl From<CompressedAccountError> for TokenError
Source§fn from(source: CompressedAccountError) -> Self
fn from(source: CompressedAccountError) -> Self
Converts to this type from the input type.
Source§impl From<HasherError> for TokenError
impl From<HasherError> for TokenError
Source§fn from(source: HasherError) -> Self
fn from(source: HasherError) -> Self
Converts to this type from the input type.
Source§impl From<TokenError> for ProgramError
impl From<TokenError> for ProgramError
Source§fn from(e: TokenError) -> Self
fn from(e: TokenError) -> Self
Converts to this type from the input type.
Source§impl From<TokenError> for u32
impl From<TokenError> for u32
Source§fn from(e: TokenError) -> u32
fn from(e: TokenError) -> u32
Converts to this type from the input type.
Source§impl From<ZeroCopyError> for TokenError
impl From<ZeroCopyError> for TokenError
Source§fn from(source: ZeroCopyError) -> Self
fn from(source: ZeroCopyError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for TokenError
impl PartialEq for TokenError
impl StructuralPartialEq for TokenError
Auto Trait Implementations§
impl Freeze for TokenError
impl RefUnwindSafe for TokenError
impl Send for TokenError
impl Sync for TokenError
impl Unpin for TokenError
impl UnwindSafe for TokenError
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
Mutably borrows from an owned value. Read more
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>
Converts
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>
Converts
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 more