#[repr(u32)]pub enum DexErrorCode {
Show 65 variants
InvalidMarketFlags = 0,
InvalidAskFlags = 1,
InvalidBidFlags = 2,
InvalidQueueLength = 3,
OwnerAccountNotProvided = 4,
ConsumeEventsQueueFailure = 5,
WrongCoinVault = 6,
WrongPcVault = 7,
WrongCoinMint = 8,
WrongPcMint = 9,
CoinVaultProgramId = 10,
PcVaultProgramId = 11,
CoinMintProgramId = 12,
PcMintProgramId = 13,
WrongCoinMintSize = 14,
WrongPcMintSize = 15,
WrongCoinVaultSize = 16,
WrongPcVaultSize = 17,
UninitializedVault = 18,
UninitializedMint = 19,
CoinMintUninitialized = 20,
PcMintUninitialized = 21,
WrongMint = 22,
WrongVaultOwner = 23,
VaultHasDelegate = 24,
AlreadyInitialized = 25,
WrongAccountDataAlignment = 26,
WrongAccountDataPaddingLength = 27,
WrongAccountHeadPadding = 28,
WrongAccountTailPadding = 29,
RequestQueueEmpty = 30,
EventQueueTooSmall = 31,
SlabTooSmall = 32,
BadVaultSignerNonce = 33,
InsufficientFunds = 34,
SplAccountProgramId = 35,
SplAccountLen = 36,
WrongFeeDiscountAccountOwner = 37,
WrongFeeDiscountMint = 38,
CoinPayerProgramId = 39,
PcPayerProgramId = 40,
ClientIdNotFound = 41,
TooManyOpenOrders = 42,
FakeErrorSoWeDontChangeNumbers = 43,
BorrowError = 44,
WrongOrdersAccount = 45,
WrongBidsAccount = 46,
WrongAsksAccount = 47,
WrongRequestQueueAccount = 48,
WrongEventQueueAccount = 49,
RequestQueueFull = 50,
EventQueueFull = 51,
MarketIsDisabled = 52,
WrongSigner = 53,
TransferFailed = 54,
ClientOrderIdIsZero = 55,
WrongRentSysvarAccount = 56,
RentNotProvided = 57,
OrdersNotRentExempt = 58,
OrderNotFound = 59,
OrderNotYours = 60,
WouldSelfTrade = 61,
InvalidOpenOrdersAuthority = 62,
Unknown = 1_000,
AssertionError = 1001,
}Variants§
InvalidMarketFlags = 0
InvalidAskFlags = 1
InvalidBidFlags = 2
InvalidQueueLength = 3
OwnerAccountNotProvided = 4
ConsumeEventsQueueFailure = 5
WrongCoinVault = 6
WrongPcVault = 7
WrongCoinMint = 8
WrongPcMint = 9
CoinVaultProgramId = 10
PcVaultProgramId = 11
CoinMintProgramId = 12
PcMintProgramId = 13
WrongCoinMintSize = 14
WrongPcMintSize = 15
WrongCoinVaultSize = 16
WrongPcVaultSize = 17
UninitializedVault = 18
UninitializedMint = 19
CoinMintUninitialized = 20
PcMintUninitialized = 21
WrongMint = 22
WrongVaultOwner = 23
VaultHasDelegate = 24
AlreadyInitialized = 25
WrongAccountDataAlignment = 26
WrongAccountDataPaddingLength = 27
WrongAccountHeadPadding = 28
WrongAccountTailPadding = 29
RequestQueueEmpty = 30
EventQueueTooSmall = 31
SlabTooSmall = 32
BadVaultSignerNonce = 33
InsufficientFunds = 34
SplAccountProgramId = 35
SplAccountLen = 36
WrongFeeDiscountAccountOwner = 37
WrongFeeDiscountMint = 38
CoinPayerProgramId = 39
PcPayerProgramId = 40
ClientIdNotFound = 41
TooManyOpenOrders = 42
FakeErrorSoWeDontChangeNumbers = 43
BorrowError = 44
WrongOrdersAccount = 45
WrongBidsAccount = 46
WrongAsksAccount = 47
WrongRequestQueueAccount = 48
WrongEventQueueAccount = 49
RequestQueueFull = 50
EventQueueFull = 51
MarketIsDisabled = 52
WrongSigner = 53
TransferFailed = 54
ClientOrderIdIsZero = 55
WrongRentSysvarAccount = 56
RentNotProvided = 57
OrdersNotRentExempt = 58
OrderNotFound = 59
OrderNotYours = 60
WouldSelfTrade = 61
InvalidOpenOrdersAuthority = 62
Unknown = 1_000
AssertionError = 1001
Trait Implementations§
Source§impl Clone for DexErrorCode
impl Clone for DexErrorCode
Source§fn clone(&self) -> DexErrorCode
fn clone(&self) -> DexErrorCode
Returns a duplicate 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 DexErrorCode
impl Debug for DexErrorCode
Source§impl Display for DexErrorCode
impl Display for DexErrorCode
Source§impl Error for DexErrorCode
impl Error for DexErrorCode
1.30.0 · 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<DexErrorCode> for DexError
impl From<DexErrorCode> for DexError
Source§fn from(source: DexErrorCode) -> Self
fn from(source: DexErrorCode) -> Self
Converts to this type from the input type.
Source§impl From<DexErrorCode> for u32
impl From<DexErrorCode> for u32
Source§fn from(enum_value: DexErrorCode) -> Self
fn from(enum_value: DexErrorCode) -> Self
Converts to this type from the input type.
Source§impl From<u32> for DexErrorCode
impl From<u32> for DexErrorCode
Source§impl FromPrimitive for DexErrorCode
impl FromPrimitive for DexErrorCode
Source§impl PartialEq for DexErrorCode
impl PartialEq for DexErrorCode
Source§impl TryFromPrimitive for DexErrorCode
impl TryFromPrimitive for DexErrorCode
impl Copy for DexErrorCode
impl Eq for DexErrorCode
impl StructuralPartialEq for DexErrorCode
Auto Trait Implementations§
impl Freeze for DexErrorCode
impl RefUnwindSafe for DexErrorCode
impl Send for DexErrorCode
impl Sync for DexErrorCode
impl Unpin for DexErrorCode
impl UnwindSafe for DexErrorCode
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<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>
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