pub enum MplGavelError {
Show 42 variants
MissingSigner,
AccountSpaceNotAllocated,
InvalidAccountKey,
InvalidOwner,
InvalidAccountSize,
InvalidSystemProgramAccount,
InvalidSplTokenProgramAccount,
InvalidSplAtaProgramAccount,
ExpiredEndDate,
AmountTooLow,
AddBidFailed,
NumericalOverflow,
BidAccountAlreadyExists,
InvalidDerivation,
InvalidBidAmount,
MissingBidAccount,
InvalidAccountKeyValue,
AuctionInProgress,
RefundNotAllowed,
AlreadyInitialized,
InvalidStartDate,
InvalidStartValue,
InvalidMint,
AuctionNotStarted,
AuctionIsLive,
MissingSourceTokenAccount,
MissingDestinationTokenAccount,
MissingMintAccount,
InvalidTickValue,
InvalidAuctioneerAccount,
InvalidAuctionMode,
MissingPayerAccount,
NotWinningBid,
MissingSystemProgram,
BidAlreadySettled,
InvalidTreasuryAccount,
InvalidBidOwner,
MismatchAuction,
InvalidAuthority,
TokenAccountDoesNotExist,
InvalidRefundFee,
AuctionIsFull,
}Variants§
MissingSigner
0 (0x0) - Missing required signer
AccountSpaceNotAllocated
1 (0x1) - Account space not allocated
InvalidAccountKey
2 (0x2) - Invalid account key
InvalidOwner
3 (0x3) - Account has an invalid owner
InvalidAccountSize
4 (0x4) - Invalid account size
InvalidSystemProgramAccount
5 (0x5) - Invalid system program account
InvalidSplTokenProgramAccount
6 (0x6) - Invalid Spl Token program account
InvalidSplAtaProgramAccount
7 (0x7) - Invalid Spl ATA program account
ExpiredEndDate
8 (0x8) - Expired end date
AmountTooLow
9 (0x9) - Amount is too low
AddBidFailed
10 (0xA) - Could not add a bid
NumericalOverflow
11 (0xB) - NumericalOverflowError
BidAccountAlreadyExists
12 (0xC) - Bid account already exists
InvalidDerivation
13 (0xD) - Invalid account key derivation
InvalidBidAmount
14 (0xE) - Bid amount can only increase
MissingBidAccount
15 (0xF) - Missing bid account
InvalidAccountKeyValue
16 (0x10) - Invalid account key value
AuctionInProgress
17 (0x11) - Auction is in progress
RefundNotAllowed
18 (0x12) - Refund not allowed
AlreadyInitialized
19 (0x13) - Account already initialized
InvalidStartDate
20 (0x14) - Start date is greater or equal to end date
InvalidStartValue
21 (0x15) - Start value lower than minimum value
InvalidMint
22 (0x16) - Invalid mint
AuctionNotStarted
23 (0x17) - Auction not started
AuctionIsLive
24 (0x18) - Auction is live
MissingSourceTokenAccount
25 (0x19) - Missing source token account
MissingDestinationTokenAccount
26 (0x1A) - Missing destination token account
MissingMintAccount
27 (0x1B) - Missing mint account
InvalidTickValue
28 (0x1C) - invalid tick value
InvalidAuctioneerAccount
29 (0x1D) - Invalid auctioneer account
InvalidAuctionMode
30 (0x1E) - Invalid auction mode
MissingPayerAccount
31 (0x1F) - Missing payer account
NotWinningBid
32 (0x20) - Not a winning bid
MissingSystemProgram
33 (0x21) - Missing system program account
BidAlreadySettled
34 (0x22) - Bid already settled
InvalidTreasuryAccount
35 (0x23) - Invalid treasury account
InvalidBidOwner
36 (0x24) - Invalid bid owner
MismatchAuction
37 (0x25) - Auction account does not match
InvalidAuthority
38 (0x26) - Invalid authority
TokenAccountDoesNotExist
39 (0x27) - Token account does not exist
InvalidRefundFee
40 (0x28) - Invalid refund fee
AuctionIsFull
41 (0x29) - Auction is full
Trait Implementations§
Source§impl Clone for MplGavelError
impl Clone for MplGavelError
Source§fn clone(&self) -> MplGavelError
fn clone(&self) -> MplGavelError
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for MplGavelError
impl Debug for MplGavelError
Source§impl Display for MplGavelError
impl Display for MplGavelError
impl Eq for MplGavelError
Source§impl Error for MplGavelError
impl Error for MplGavelError
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
use the Display impl or to_string()
Source§impl FromPrimitive for MplGavelError
impl FromPrimitive for MplGavelError
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 MplGavelError
impl PartialEq for MplGavelError
Source§fn eq(&self, other: &MplGavelError) -> bool
fn eq(&self, other: &MplGavelError) -> bool
self and other values to be equal, and is used by ==.Source§impl PrintProgramError for MplGavelError
impl PrintProgramError for MplGavelError
impl StructuralPartialEq for MplGavelError
Auto Trait Implementations§
impl Freeze for MplGavelError
impl RefUnwindSafe for MplGavelError
impl Send for MplGavelError
impl Sync for MplGavelError
impl Unpin for MplGavelError
impl UnsafeUnpin for MplGavelError
impl UnwindSafe for MplGavelError
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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