marginpy.generated_client.errors package

from_code(code: int) Optional[Union[Unauthorized, EmptyLendingPool, IllegalUtilizationRatio, MathError, InvalidTimestamp, MarginRequirementsNotMet, OnlyReduceAllowed, UtpInactive, UtpAlreadyActive, InvalidAccountData, LiquidatorHasActiveUtps, AccountHasActiveUtps, AccountNotLiquidatable, AccountNotBankrupt, IllegalUtpDeactivation, IllegalRebalance, BorrowNotAllowed, IllegalConfig, OperationsPaused, InsufficientVaultBalance, Forbidden, InvalidUTPAccount, AccountDepositLimit, GroupDepositLimit, InvalidObserveAccounts, MangoError, InstructionMissing, InstructionFallbackNotFound, InstructionDidNotDeserialize, InstructionDidNotSerialize, IdlInstructionStub, IdlInstructionInvalidProgram, ConstraintMut, ConstraintHasOne, ConstraintSigner, ConstraintRaw, ConstraintOwner, ConstraintRentExempt, ConstraintSeeds, ConstraintExecutable, ConstraintState, ConstraintAssociated, ConstraintAssociatedInit, ConstraintClose, ConstraintAddress, ConstraintZero, ConstraintTokenMint, ConstraintTokenOwner, ConstraintMintMintAuthority, ConstraintMintFreezeAuthority, ConstraintMintDecimals, ConstraintSpace, RequireViolated, RequireEqViolated, RequireKeysEqViolated, RequireNeqViolated, RequireKeysNeqViolated, RequireGtViolated, RequireGteViolated, AccountDiscriminatorAlreadySet, AccountDiscriminatorNotFound, AccountDiscriminatorMismatch, AccountDidNotDeserialize, AccountDidNotSerialize, AccountNotEnoughKeys, AccountNotMutable, AccountOwnedByWrongProgram, InvalidProgramId, InvalidProgramExecutable, AccountNotSigner, AccountNotSystemOwned, AccountNotInitialized, AccountNotProgramData, AccountNotAssociatedTokenAccount, AccountSysvarMismatch, StateInvalidAddress, Deprecated]]
from_tx_error(error: RPCException) Optional[Union[InstructionMissing, InstructionFallbackNotFound, InstructionDidNotDeserialize, InstructionDidNotSerialize, IdlInstructionStub, IdlInstructionInvalidProgram, ConstraintMut, ConstraintHasOne, ConstraintSigner, ConstraintRaw, ConstraintOwner, ConstraintRentExempt, ConstraintSeeds, ConstraintExecutable, ConstraintState, ConstraintAssociated, ConstraintAssociatedInit, ConstraintClose, ConstraintAddress, ConstraintZero, ConstraintTokenMint, ConstraintTokenOwner, ConstraintMintMintAuthority, ConstraintMintFreezeAuthority, ConstraintMintDecimals, ConstraintSpace, RequireViolated, RequireEqViolated, RequireKeysEqViolated, RequireNeqViolated, RequireKeysNeqViolated, RequireGtViolated, RequireGteViolated, AccountDiscriminatorAlreadySet, AccountDiscriminatorNotFound, AccountDiscriminatorMismatch, AccountDidNotDeserialize, AccountDidNotSerialize, AccountNotEnoughKeys, AccountNotMutable, AccountOwnedByWrongProgram, InvalidProgramId, InvalidProgramExecutable, AccountNotSigner, AccountNotSystemOwned, AccountNotInitialized, AccountNotProgramData, AccountNotAssociatedTokenAccount, AccountSysvarMismatch, StateInvalidAddress, Deprecated, Unauthorized, EmptyLendingPool, IllegalUtilizationRatio, MathError, InvalidTimestamp, MarginRequirementsNotMet, OnlyReduceAllowed, UtpInactive, UtpAlreadyActive, InvalidAccountData, LiquidatorHasActiveUtps, AccountHasActiveUtps, AccountNotLiquidatable, AccountNotBankrupt, IllegalUtpDeactivation, IllegalRebalance, BorrowNotAllowed, IllegalConfig, OperationsPaused, InsufficientVaultBalance, Forbidden, InvalidUTPAccount, AccountDepositLimit, GroupDepositLimit, InvalidObserveAccounts, MangoError]]

Submodules