Enum dflow_sdk::errors::DFlowError
source · [−]#[repr(u32)]
pub enum DFlowError {
Show 101 variants
BidDidNotExceedBest,
RetailOrderQueueFull,
MarketMakerOrderQueueFull,
_MessageNotSignedByRetailTrader,
_NoDesignatedMarketMakerAvailable,
_OrdersRequestedExceedsMax,
OverFill,
InvalidFillPrice,
InvalidAuctionSpecified,
PriceOracleNotTrading,
InvalidVaultMetaVecMismatch,
OrderDetailsParsingError,
InvalidFillAmount,
InvalidMinFillPrice,
AuctionEpochInitInvalidOwner,
NotAllRewardsDistributed,
FillVotingHitMax,
InvalidAuctionEpoch,
InvalidFillVoteValue,
VotingClosed,
VoteRewardClaimingClosed,
OverflowError,
AuctionNotTakingOrders,
InvalidOrderType,
InvalidMarketMakerAccountAddress,
AuctionIdAlreadyExists,
InvalidNewOrderEpoch,
InvalidYMint,
OrderNotInRetailQueue,
OrderNotInMarketMakerQueue,
InvalidAuctionStatus,
AuctionIsHalted,
InvalidAuctionInit,
InvalidXMint,
InvalidOracles,
UnableToFindMarketPrice,
UnableToIdentifyCurrencyPair,
MintDecimalsTooLarge,
MintCaptureListEmpty,
MintCaptureListSizeMismatch,
QuoteCurrencyConversionOverflow,
InvalidPriceOraclesPassed,
OracleCaptureListEmpty,
OracleForXMintNotFound,
PythInvalidAccountData,
PythBadVersionNumber,
PythWrongAccountType,
OtherPythError,
InvalidNextAuctionEpoch,
ArbiterDoesNotDeserveReward,
InvalidNotionalSize,
UnexpectedBufferSize,
Ed25519InstructionNotIncluded,
Ed25519InstructionInvalidSigCount,
Ed25519InstructionInvalidSigOffset,
Ed25519InstructionInvalidSigIndex,
Ed25519InstructionInvalidSig,
Ed25519InstructionInvalidPubKeyOffset,
Ed25519InstructionInvalidPubKeyIndex,
Ed25519InstructionInvalidPubKey,
Ed25519InstructionInvalidMsgOffset,
Ed25519InstructionInvalidMsgIndex,
Ed25519InstructionInvalidMsg,
InvalidMarketMakerEncryptionPubKey,
InvalidRebateReceiverTokenAccount,
InvalidMarketMaker,
InvalidRetailYTokenAccount,
FillNotYetCloseable,
NoAuctionWinner,
InvalidMarketMakerXTokenAccount,
InvalidMarketMakerAccountOwner,
InvalidBidRecoveryVaultAccountAddress,
InvalidBidRecoveryVaultAccountNotWritable,
InvalidXRecoveryVaultAccountAddress,
InvalidXRecoveryVaultAccountNotWritable,
InvalidCloseFillRemainingAccounts,
InvalidCloseFillRetailDataAccount,
InvalidCloseRetailDataAccountOpenOrders,
InvalidCloseRetailDataAccountUnsettledFills,
InvalidCloseRetailDataAccountWrongOwner,
InvalidCloseAuctionEpochStateOpenOrders,
InvalidCloseAuctionEpochStateUnsettledFills,
InvalidCloseAuctionEpochStateAuctionActive,
InvalidCloseAuctionEpochStateOwner,
NotReclaimableByCurrentLeader,
NotReclaimableInvalidMarketMakerOwner,
InvalidAuctionStatusChange,
InvalidYRecoveryVaultAccountAddress,
InvalidYRecoveryVaultAccountNotWritable,
InvalidFillOrderRemainingAccounts,
InvalidEndorsement,
InsufficientSignatoryStake,
InvalidDFlowAdmin,
InvalidWhitelistEntryType,
AlreadyWhitelisted,
NotWhitelisted,
InvalidAuctionOwner,
InvalidVotePeriod,
InvalidClaimPeriod,
NegativeClockUnixTimestamp,
DFlowInvariantViolated,
}
Variants
BidDidNotExceedBest
RetailOrderQueueFull
MarketMakerOrderQueueFull
_MessageNotSignedByRetailTrader
_NoDesignatedMarketMakerAvailable
_OrdersRequestedExceedsMax
OverFill
InvalidFillPrice
InvalidAuctionSpecified
PriceOracleNotTrading
InvalidVaultMetaVecMismatch
OrderDetailsParsingError
InvalidFillAmount
InvalidMinFillPrice
AuctionEpochInitInvalidOwner
NotAllRewardsDistributed
FillVotingHitMax
InvalidAuctionEpoch
InvalidFillVoteValue
VotingClosed
VoteRewardClaimingClosed
OverflowError
AuctionNotTakingOrders
InvalidOrderType
InvalidMarketMakerAccountAddress
AuctionIdAlreadyExists
InvalidNewOrderEpoch
InvalidYMint
OrderNotInRetailQueue
OrderNotInMarketMakerQueue
InvalidAuctionStatus
AuctionIsHalted
InvalidAuctionInit
InvalidXMint
InvalidOracles
UnableToFindMarketPrice
UnableToIdentifyCurrencyPair
MintDecimalsTooLarge
MintCaptureListEmpty
MintCaptureListSizeMismatch
QuoteCurrencyConversionOverflow
InvalidPriceOraclesPassed
OracleCaptureListEmpty
OracleForXMintNotFound
PythInvalidAccountData
PythBadVersionNumber
PythWrongAccountType
OtherPythError
InvalidNextAuctionEpoch
ArbiterDoesNotDeserveReward
InvalidNotionalSize
Notional size outside of auction specification
UnexpectedBufferSize
Ed25519InstructionNotIncluded
Ed25519InstructionInvalidSigCount
Ed25519InstructionInvalidSigOffset
Ed25519InstructionInvalidSigIndex
Ed25519InstructionInvalidSig
Ed25519InstructionInvalidPubKeyOffset
Ed25519InstructionInvalidPubKeyIndex
Ed25519InstructionInvalidPubKey
Ed25519InstructionInvalidMsgOffset
Ed25519InstructionInvalidMsgIndex
Ed25519InstructionInvalidMsg
InvalidMarketMakerEncryptionPubKey
InvalidRebateReceiverTokenAccount
InvalidMarketMaker
InvalidRetailYTokenAccount
FillNotYetCloseable
NoAuctionWinner
InvalidMarketMakerXTokenAccount
CloseFillAccounts
InvalidMarketMakerAccountOwner
InvalidBidRecoveryVaultAccountAddress
InvalidBidRecoveryVaultAccountNotWritable
InvalidXRecoveryVaultAccountAddress
InvalidXRecoveryVaultAccountNotWritable
InvalidCloseFillRemainingAccounts
InvalidCloseFillRetailDataAccount
InvalidCloseRetailDataAccountOpenOrders
CloseRetailDataAccount
InvalidCloseRetailDataAccountUnsettledFills
InvalidCloseRetailDataAccountWrongOwner
InvalidCloseAuctionEpochStateOpenOrders
CloseAuctionEpochState
InvalidCloseAuctionEpochStateUnsettledFills
InvalidCloseAuctionEpochStateAuctionActive
InvalidCloseAuctionEpochStateOwner
NotReclaimableByCurrentLeader
NotReclaimableInvalidMarketMakerOwner
InvalidAuctionStatusChange
InvalidYRecoveryVaultAccountAddress
InvalidYRecoveryVaultAccountNotWritable
InvalidFillOrderRemainingAccounts
InvalidEndorsement
Signatory
InsufficientSignatoryStake
InvalidDFlowAdmin
Access control
InvalidWhitelistEntryType
AlreadyWhitelisted
NotWhitelisted
InvalidAuctionOwner
InvalidVotePeriod
InvalidClaimPeriod
NegativeClockUnixTimestamp
DFlowInvariantViolated
A DFlow program invariant was violated
Implementations
sourceimpl DFlowError
impl DFlowError
Trait Implementations
sourceimpl Clone for DFlowError
impl Clone for DFlowError
sourcefn clone(&self) -> DFlowError
fn clone(&self) -> DFlowError
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for DFlowError
impl Debug for DFlowError
sourceimpl Display for DFlowError
impl Display for DFlowError
sourceimpl From<DFlowError> for u32
impl From<DFlowError> for u32
sourcefn from(e: DFlowError) -> u32
fn from(e: DFlowError) -> u32
Converts to this type from the input type.
sourceimpl From<DFlowError> for Error
impl From<DFlowError> for Error
sourcefn from(error_code: DFlowError) -> Error
fn from(error_code: DFlowError) -> Error
Converts to this type from the input type.
sourceimpl From<PythError> for DFlowError
impl From<PythError> for DFlowError
sourcefn from(code: PythError) -> DFlowError
fn from(code: PythError) -> DFlowError
Converts to this type from the input type.
impl Copy for DFlowError
Auto Trait Implementations
impl RefUnwindSafe for DFlowError
impl Send for DFlowError
impl Sync for DFlowError
impl Unpin for DFlowError
impl UnwindSafe for DFlowError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
impl<T> Pointable for T
impl<T> Pointable for T
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
fn vzip(self) -> V
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more