#[repr(u16)]pub enum ContractError {
Show 84 variants
NoError = 0,
AccountSize = 1,
AccountOwner = 2,
AccountWritableAttribute = 3,
WrongAccountTag = 4,
AccountVersionTooHigh = 5,
AccountVersionTooLow = 6,
RootAddress = 7,
IncreaseSize = 8,
InstructionDataLength = 9,
UnknownAccountTag = 10,
LamportTransfer = 11,
AccountLegacyError = 12,
AccountsQuantity = 13,
AccountIsMissing = 14,
MismatchOraclesOrder = 15,
InvalidPDA = 16,
InsufficientFunds = 17,
CreateAccount = 18,
SuchOracleDoesNotExists = 19,
SuchInstrumentDoesNotExists = 20,
InstructionDataVersion = 21,
TradeCloseBeforeExpire = 22,
OptionPeriodClosed = 23,
NotionalValueTooHigh = 24,
CostLimitExceeded = 25,
DailyLimitExceeded = 26,
PoolFundingRequired = 27,
AssetPriceUnavailable = 28,
TimeReadError = 29,
ComputationError = 30,
InvalidOracleNumber = 31,
AdminOnlyTransaction = 32,
AccountNotSigner = 33,
UnauthorizedClientOperation = 34,
PoolRecordNotFound = 35,
PriceDiscrepancyError = 36,
MandatoryOracleMissing = 37,
InvalidAccountId = 38,
InvalidMintId = 39,
WorkerInvalidState = 40,
TaskStartBeforeCurrentDate = 41,
MaxWorkersExceeded = 42,
InvalidFeePayerOption = 43,
InactivePoolCannotFinalize = 44,
PoolFinalizeTimeNotReached = 45,
IncorrectExpectedPDA = 46,
LamportsTransferFailed = 47,
CreatedAccountSizeMismatch = 48,
ZeroVolumeTradeAttempt = 49,
TradeOutsideActivePeriod = 50,
MaxPoolsParticipationReached = 51,
PoolTokenSaleExceedsHoldings = 52,
DepositExceedsPoolLimit = 53,
WorkerAccountMismatch = 54,
PoolIndexOutOfRange = 55,
SettlementPriceUnavailable = 56,
EarlyPayoffAttempt = 57,
InvalidPoolAccess = 58,
WorkerInvalidStateForTask = 59,
WorkerDurationZero = 60,
WorkerInitPxBelowID = 61,
WorkerWidthFactorExceedsID = 62,
WorkerFeeRateOutOfBounds = 63,
WorkerFeeRatioOutOfBounds = 64,
WorkerInvRatioOutOfBounds = 65,
KycAdminOnlyTransaction = 66,
TokenOwnerMismatch = 67,
TokenMintMismatch = 68,
AccountUninitialized = 69,
TokenPkMismatch = 70,
ProgramTokenAccMismatch = 71,
TransferFailed = 72,
TransferExecutionFailed = 73,
InsufficientBalance = 74,
InvalidInstruction = 75,
MigrationNotImplemented = 76,
InvalidOldMigrationVersion = 77,
InvalidNewMigrationVersion = 78,
MigrationFailed = 79,
InvalidBasketStrikeId = 80,
BasketLengthIsTooBig = 81,
TestAbort = 65_534,
UnknownError = 65_535,
}Variants§
NoError = 0
AccountSize = 1
AccountOwner = 2
AccountWritableAttribute = 3
WrongAccountTag = 4
AccountVersionTooHigh = 5
AccountVersionTooLow = 6
RootAddress = 7
IncreaseSize = 8
InstructionDataLength = 9
UnknownAccountTag = 10
LamportTransfer = 11
AccountLegacyError = 12
AccountsQuantity = 13
AccountIsMissing = 14
MismatchOraclesOrder = 15
InvalidPDA = 16
InsufficientFunds = 17
CreateAccount = 18
SuchOracleDoesNotExists = 19
SuchInstrumentDoesNotExists = 20
InstructionDataVersion = 21
TradeCloseBeforeExpire = 22
OptionPeriodClosed = 23
NotionalValueTooHigh = 24
CostLimitExceeded = 25
DailyLimitExceeded = 26
PoolFundingRequired = 27
TimeReadError = 29
ComputationError = 30
InvalidOracleNumber = 31
AdminOnlyTransaction = 32
AccountNotSigner = 33
PoolRecordNotFound = 35
PriceDiscrepancyError = 36
MandatoryOracleMissing = 37
InvalidAccountId = 38
InvalidMintId = 39
WorkerInvalidState = 40
TaskStartBeforeCurrentDate = 41
MaxWorkersExceeded = 42
InvalidFeePayerOption = 43
InactivePoolCannotFinalize = 44
PoolFinalizeTimeNotReached = 45
IncorrectExpectedPDA = 46
LamportsTransferFailed = 47
CreatedAccountSizeMismatch = 48
ZeroVolumeTradeAttempt = 49
TradeOutsideActivePeriod = 50
MaxPoolsParticipationReached = 51
PoolTokenSaleExceedsHoldings = 52
DepositExceedsPoolLimit = 53
WorkerAccountMismatch = 54
PoolIndexOutOfRange = 55
EarlyPayoffAttempt = 57
InvalidPoolAccess = 58
WorkerInvalidStateForTask = 59
WorkerDurationZero = 60
WorkerInitPxBelowID = 61
WorkerWidthFactorExceedsID = 62
WorkerFeeRateOutOfBounds = 63
WorkerFeeRatioOutOfBounds = 64
WorkerInvRatioOutOfBounds = 65
KycAdminOnlyTransaction = 66
TokenOwnerMismatch = 67
TokenMintMismatch = 68
AccountUninitialized = 69
TokenPkMismatch = 70
ProgramTokenAccMismatch = 71
TransferFailed = 72
TransferExecutionFailed = 73
InsufficientBalance = 74
InvalidInstruction = 75
MigrationNotImplemented = 76
InvalidOldMigrationVersion = 77
InvalidNewMigrationVersion = 78
MigrationFailed = 79
InvalidBasketStrikeId = 80
BasketLengthIsTooBig = 81
TestAbort = 65_534
UnknownError = 65_535
Implementations§
Source§impl ContractError
impl ContractError
Trait Implementations§
Source§impl Clone for ContractError
impl Clone for ContractError
Source§fn clone(&self) -> ContractError
fn clone(&self) -> ContractError
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 ContractError
impl Debug for ContractError
Source§impl Display for ContractError
impl Display for ContractError
Source§impl Error for ContractError
impl Error for ContractError
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 IntoEnumIterator for ContractError
impl IntoEnumIterator for ContractError
type Iterator = ContractErrorIter
fn iter() -> ContractErrorIter ⓘ
Source§impl PartialEq for ContractError
impl PartialEq for ContractError
impl Copy for ContractError
impl StructuralPartialEq for ContractError
Auto Trait Implementations§
impl Freeze for ContractError
impl RefUnwindSafe for ContractError
impl Send for ContractError
impl Sync for ContractError
impl Unpin for ContractError
impl UnwindSafe for ContractError
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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