pub enum TrifleError {
Show 24 variants
NumericalOverflow,
InvalidAccount,
InvalidEscrowConstraintModel,
InvalidEscrowConstraint,
EscrowConstraintViolation,
InvalidUpdateAuthority,
FailedToCreatePubkey,
DataTypeMismatch,
ConstraintAlreadyExists,
TokenLimitExceeded,
FailedToFindTokenAmount,
InvalidCollectionMetadata,
TransferEffectConflict,
FreezeAuthorityNotSet,
CannotBurnPrintEdition,
ConstraintKeyNotFound,
FailedToSerialize,
FailedToBorrowAccountData,
InvalidCollection,
MustBeHolder,
InvalidFirstCreator,
IncorrectOwner,
DerivedKeyInvalid,
KeyMismatch,
}Variants§
NumericalOverflow
0 - Numerical Overflow
InvalidAccount
1 - Invalid account
InvalidEscrowConstraintModel
2 - Invalid Escrow Constraint Model
InvalidEscrowConstraint
3 - Invalid Escrow Constraint
EscrowConstraintViolation
4 - Escrow Constraint Violation
InvalidUpdateAuthority
5 - Invalid Update Authority
FailedToCreatePubkey
6 - Failed to create pubkey
DataTypeMismatch
7 - Data type mismatch
ConstraintAlreadyExists
8 - Constraint already exists
TokenLimitExceeded
9 - Token limit exceeded
FailedToFindTokenAmount
10 - Failed to find the token amount
InvalidCollectionMetadata
11 - The collection metadata is invalid
TransferEffectConflict
12 - This set of Transfer Effects can not be used together
FreezeAuthorityNotSet
13 - The freeze authority is not set
CannotBurnPrintEdition
14 - Cannot burn Print Edition
ConstraintKeyNotFound
15 - The constraint key was not found
FailedToSerialize
16 - The data failed to serialize
FailedToBorrowAccountData
17 - Account data borrow failed
InvalidCollection
18 - Failed to deserialize the collection
MustBeHolder
19 - Only the holder is allowed to perform this action
InvalidFirstCreator
20 - Failed to deserialize the first creator
IncorrectOwner
21 - Incorrect account owner
DerivedKeyInvalid
22 Derived key invalid
KeyMismatch
23 - Public key does not match expected value
Trait Implementations§
Source§impl Clone for TrifleError
impl Clone for TrifleError
Source§fn clone(&self) -> TrifleError
fn clone(&self) -> TrifleError
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for TrifleError
impl Debug for TrifleError
Source§impl<T> DecodeError<T> for TrifleError
impl<T> DecodeError<T> for TrifleError
fn type_of() -> &'static str
fn decode_custom_error_to_enum(custom: u32) -> Option<E>where
E: FromPrimitive,
Source§impl Display for TrifleError
impl Display for TrifleError
Source§impl Error for TrifleError
impl Error for TrifleError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
Source§impl From<TrifleError> for ProgramError
impl From<TrifleError> for ProgramError
Source§fn from(e: TrifleError) -> Self
fn from(e: TrifleError) -> Self
Source§impl FromPrimitive for TrifleError
impl FromPrimitive for TrifleError
Source§fn from_i64(n: i64) -> Option<Self>
fn from_i64(n: i64) -> Option<Self>
i64 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.Source§fn from_u64(n: u64) -> Option<Self>
fn from_u64(n: u64) -> Option<Self>
u64 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.Source§fn from_isize(n: isize) -> Option<Self>
fn from_isize(n: isize) -> Option<Self>
isize to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.Source§fn from_i8(n: i8) -> Option<Self>
fn from_i8(n: i8) -> Option<Self>
i8 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.Source§fn from_i16(n: i16) -> Option<Self>
fn from_i16(n: i16) -> Option<Self>
i16 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.Source§fn from_i32(n: i32) -> Option<Self>
fn from_i32(n: i32) -> Option<Self>
i32 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.Source§fn from_i128(n: i128) -> Option<Self>
fn from_i128(n: i128) -> Option<Self>
i128 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned. Read moreSource§fn from_usize(n: usize) -> Option<Self>
fn from_usize(n: usize) -> Option<Self>
usize to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.Source§fn from_u8(n: u8) -> Option<Self>
fn from_u8(n: u8) -> Option<Self>
u8 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.Source§fn from_u16(n: u16) -> Option<Self>
fn from_u16(n: u16) -> Option<Self>
u16 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.Source§fn from_u32(n: u32) -> Option<Self>
fn from_u32(n: u32) -> Option<Self>
u32 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.Source§fn from_u128(n: u128) -> Option<Self>
fn from_u128(n: u128) -> Option<Self>
u128 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned. Read moreSource§impl PartialEq for TrifleError
impl PartialEq for TrifleError
Source§impl PrintProgramError for TrifleError
impl PrintProgramError for TrifleError
impl Copy for TrifleError
impl Eq for TrifleError
impl StructuralPartialEq for TrifleError
Auto Trait Implementations§
impl Freeze for TrifleError
impl RefUnwindSafe for TrifleError
impl Send for TrifleError
impl Sync for TrifleError
impl Unpin for TrifleError
impl UnwindSafe for TrifleError
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> 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>
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>
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