#[repr(u32)]pub enum ErrorCode {
Show 31 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,
MetadataAccountMustBeEmpty = 30,
}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
MetadataAccountMustBeEmpty = 30
Implementations§
Trait Implementations§
Source§impl From<ErrorCode> for ProgramError
impl From<ErrorCode> for ProgramError
impl Copy for ErrorCode
Auto Trait Implementations§
impl Freeze for ErrorCode
impl RefUnwindSafe for ErrorCode
impl Send for ErrorCode
impl Sync for ErrorCode
impl Unpin for ErrorCode
impl UnwindSafe for ErrorCode
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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