Enum mpl_candy_machine::errors::CandyError
source · #[repr(u32)]pub enum CandyError {
Show 52 variants
IncorrectOwner = 0,
Uninitialized = 1,
MintMismatch = 2,
IndexGreaterThanLength = 3,
NumericalOverflowError = 4,
TooManyCreators = 5,
UuidMustBeExactly6Length = 6,
NotEnoughTokens = 7,
NotEnoughSOL = 8,
TokenTransferFailed = 9,
CandyMachineEmpty = 10,
CandyMachineNotLive = 11,
HiddenSettingsConfigsDoNotHaveConfigLines = 12,
CannotChangeNumberOfLines = 13,
DerivedKeyInvalid = 14,
PublicKeyMismatch = 15,
NoWhitelistToken = 16,
TokenBurnFailed = 17,
GatewayAppMissing = 18,
GatewayTokenMissing = 19,
GatewayTokenExpireTimeInvalid = 20,
NetworkExpireFeatureMissing = 21,
CannotFindUsableConfigLine = 22,
InvalidString = 23,
SuspiciousTransaction = 24,
CannotSwitchToHiddenSettings = 25,
IncorrectSlotHashesPubkey = 26,
IncorrectCollectionAuthority = 27,
MismatchedCollectionPDA = 28,
MismatchedCollectionMint = 29,
SlotHashesEmpty = 30,
MetadataAccountMustBeEmpty = 31,
MissingSetCollectionDuringMint = 32,
NoChangingCollectionDuringMint = 33,
CandyCollectionRequiresRetainAuthority = 34,
GatewayProgramError = 35,
NoChangingFreezeDuringMint = 36,
NoChangingAuthorityWithCollection = 37,
NoChangingTokenWithFreeze = 38,
InvalidThawNft = 39,
IncorrectRemainingAccountsLen = 40,
MissingFreezeAta = 41,
IncorrectFreezeAta = 42,
FreezePDAMismatch = 43,
EnteredFreezeIsMoreThanMaxFreeze = 44,
NoWithdrawWithFreeze = 45,
NoWithdrawWithFrozenFunds = 46,
MissingRemoveFreezeTokenAccounts = 47,
InvalidFreezeWithdrawTokenAddress = 48,
NoUnlockWithNFTsStillFrozen = 49,
SizedCollectionMetadataMustBeMutable = 50,
CannotSwitchFromHiddenSettings = 51,
}Variants§
IncorrectOwner = 0
Uninitialized = 1
MintMismatch = 2
IndexGreaterThanLength = 3
NumericalOverflowError = 4
TooManyCreators = 5
UuidMustBeExactly6Length = 6
NotEnoughTokens = 7
NotEnoughSOL = 8
TokenTransferFailed = 9
CandyMachineEmpty = 10
CandyMachineNotLive = 11
HiddenSettingsConfigsDoNotHaveConfigLines = 12
CannotChangeNumberOfLines = 13
DerivedKeyInvalid = 14
PublicKeyMismatch = 15
NoWhitelistToken = 16
TokenBurnFailed = 17
GatewayAppMissing = 18
GatewayTokenMissing = 19
GatewayTokenExpireTimeInvalid = 20
NetworkExpireFeatureMissing = 21
CannotFindUsableConfigLine = 22
InvalidString = 23
SuspiciousTransaction = 24
CannotSwitchToHiddenSettings = 25
IncorrectSlotHashesPubkey = 26
IncorrectCollectionAuthority = 27
MismatchedCollectionPDA = 28
MismatchedCollectionMint = 29
SlotHashesEmpty = 30
MetadataAccountMustBeEmpty = 31
MissingSetCollectionDuringMint = 32
NoChangingCollectionDuringMint = 33
CandyCollectionRequiresRetainAuthority = 34
GatewayProgramError = 35
NoChangingFreezeDuringMint = 36
NoChangingAuthorityWithCollection = 37
NoChangingTokenWithFreeze = 38
InvalidThawNft = 39
IncorrectRemainingAccountsLen = 40
MissingFreezeAta = 41
IncorrectFreezeAta = 42
FreezePDAMismatch = 43
EnteredFreezeIsMoreThanMaxFreeze = 44
NoWithdrawWithFreeze = 45
NoWithdrawWithFrozenFunds = 46
MissingRemoveFreezeTokenAccounts = 47
InvalidFreezeWithdrawTokenAddress = 48
NoUnlockWithNFTsStillFrozen = 49
SizedCollectionMetadataMustBeMutable = 50
CannotSwitchFromHiddenSettings = 51
Implementations§
Trait Implementations§
source§impl Clone for CandyError
impl Clone for CandyError
source§fn clone(&self) -> CandyError
fn clone(&self) -> CandyError
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for CandyError
impl Debug for CandyError
source§impl Display for CandyError
impl Display for CandyError
source§impl From<CandyError> for Error
impl From<CandyError> for Error
source§fn from(error_code: CandyError) -> Error
fn from(error_code: CandyError) -> Error
Converts to this type from the input type.
source§impl From<CandyError> for u32
impl From<CandyError> for u32
source§fn from(e: CandyError) -> u32
fn from(e: CandyError) -> u32
Converts to this type from the input type.
impl Copy for CandyError
Auto Trait Implementations§
impl RefUnwindSafe for CandyError
impl Send for CandyError
impl Sync for CandyError
impl Unpin for CandyError
impl UnwindSafe for CandyError
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