marginpy.generated_client.errors.anchor module
- exception InstructionMissing
Bases:
ProgramError
- code = 100
- name = 'InstructionMissing'
- msg = '8 byte instruction identifier not provided'
- exception InstructionFallbackNotFound
Bases:
ProgramError
- code = 101
- name = 'InstructionFallbackNotFound'
- msg = 'Fallback functions are not supported'
- exception InstructionDidNotDeserialize
Bases:
ProgramError
- code = 102
- name = 'InstructionDidNotDeserialize'
- msg = 'The program could not deserialize the given instruction'
- exception InstructionDidNotSerialize
Bases:
ProgramError
- code = 103
- name = 'InstructionDidNotSerialize'
- msg = 'The program could not serialize the given instruction'
- exception IdlInstructionStub
Bases:
ProgramError
- code = 1000
- name = 'IdlInstructionStub'
- msg = 'The program was compiled without idl instructions'
- exception IdlInstructionInvalidProgram
Bases:
ProgramError
- code = 1001
- name = 'IdlInstructionInvalidProgram'
- msg = 'The transaction was given an invalid program for the IDL instruction'
- exception ConstraintMut
Bases:
ProgramError
- code = 2000
- name = 'ConstraintMut'
- msg = 'A mut constraint was violated'
- exception ConstraintHasOne
Bases:
ProgramError
- code = 2001
- name = 'ConstraintHasOne'
- msg = 'A has_one constraint was violated'
- exception ConstraintSigner
Bases:
ProgramError
- code = 2002
- name = 'ConstraintSigner'
- msg = 'A signer constraint was violated'
- exception ConstraintRaw
Bases:
ProgramError
- code = 2003
- name = 'ConstraintRaw'
- msg = 'A raw constraint was violated'
- exception ConstraintOwner
Bases:
ProgramError
- code = 2004
- name = 'ConstraintOwner'
- msg = 'An owner constraint was violated'
- exception ConstraintRentExempt
Bases:
ProgramError
- code = 2005
- name = 'ConstraintRentExempt'
- msg = 'A rent exempt constraint was violated'
- exception ConstraintSeeds
Bases:
ProgramError
- code = 2006
- name = 'ConstraintSeeds'
- msg = 'A seeds constraint was violated'
- exception ConstraintExecutable
Bases:
ProgramError
- code = 2007
- name = 'ConstraintExecutable'
- msg = 'An executable constraint was violated'
- exception ConstraintState
Bases:
ProgramError
- code = 2008
- name = 'ConstraintState'
- msg = 'A state constraint was violated'
- exception ConstraintAssociated
Bases:
ProgramError
- code = 2009
- name = 'ConstraintAssociated'
- msg = 'An associated constraint was violated'
- exception ConstraintAssociatedInit
Bases:
ProgramError
- code = 2010
- name = 'ConstraintAssociatedInit'
- msg = 'An associated init constraint was violated'
- exception ConstraintClose
Bases:
ProgramError
- code = 2011
- name = 'ConstraintClose'
- msg = 'A close constraint was violated'
- exception ConstraintAddress
Bases:
ProgramError
- code = 2012
- name = 'ConstraintAddress'
- msg = 'An address constraint was violated'
- exception ConstraintZero
Bases:
ProgramError
- code = 2013
- name = 'ConstraintZero'
- msg = 'Expected zero account discriminant'
- exception ConstraintTokenMint
Bases:
ProgramError
- code = 2014
- name = 'ConstraintTokenMint'
- msg = 'A token mint constraint was violated'
- exception ConstraintTokenOwner
Bases:
ProgramError
- code = 2015
- name = 'ConstraintTokenOwner'
- msg = 'A token owner constraint was violated'
- exception ConstraintMintMintAuthority
Bases:
ProgramError
- code = 2016
- name = 'ConstraintMintMintAuthority'
- msg = 'A mint mint authority constraint was violated'
- exception ConstraintMintFreezeAuthority
Bases:
ProgramError
- code = 2017
- name = 'ConstraintMintFreezeAuthority'
- msg = 'A mint freeze authority constraint was violated'
- exception ConstraintMintDecimals
Bases:
ProgramError
- code = 2018
- name = 'ConstraintMintDecimals'
- msg = 'A mint decimals constraint was violated'
- exception ConstraintSpace
Bases:
ProgramError
- code = 2019
- name = 'ConstraintSpace'
- msg = 'A space constraint was violated'
- exception RequireViolated
Bases:
ProgramError
- code = 2500
- name = 'RequireViolated'
- msg = 'A require expression was violated'
- exception RequireEqViolated
Bases:
ProgramError
- code = 2501
- name = 'RequireEqViolated'
- msg = 'A require_eq expression was violated'
- exception RequireKeysEqViolated
Bases:
ProgramError
- code = 2502
- name = 'RequireKeysEqViolated'
- msg = 'A require_keys_eq expression was violated'
- exception RequireNeqViolated
Bases:
ProgramError
- code = 2503
- name = 'RequireNeqViolated'
- msg = 'A require_neq expression was violated'
- exception RequireKeysNeqViolated
Bases:
ProgramError
- code = 2504
- name = 'RequireKeysNeqViolated'
- msg = 'A require_keys_neq expression was violated'
- exception RequireGtViolated
Bases:
ProgramError
- code = 2505
- name = 'RequireGtViolated'
- msg = 'A require_gt expression was violated'
- exception RequireGteViolated
Bases:
ProgramError
- code = 2506
- name = 'RequireGteViolated'
- msg = 'A require_gte expression was violated'
- exception AccountDiscriminatorAlreadySet
Bases:
ProgramError
- code = 3000
- name = 'AccountDiscriminatorAlreadySet'
- msg = 'The account discriminator was already set on this account'
- exception AccountDiscriminatorNotFound
Bases:
ProgramError
- code = 3001
- name = 'AccountDiscriminatorNotFound'
- msg = 'No 8 byte discriminator was found on the account'
- exception AccountDiscriminatorMismatch
Bases:
ProgramError
- code = 3002
- name = 'AccountDiscriminatorMismatch'
- msg = '8 byte discriminator did not match what was expected'
- exception AccountDidNotDeserialize
Bases:
ProgramError
- code = 3003
- name = 'AccountDidNotDeserialize'
- msg = 'Failed to deserialize the account'
- exception AccountDidNotSerialize
Bases:
ProgramError
- code = 3004
- name = 'AccountDidNotSerialize'
- msg = 'Failed to serialize the account'
- exception AccountNotEnoughKeys
Bases:
ProgramError
- code = 3005
- name = 'AccountNotEnoughKeys'
- msg = 'Not enough account keys given to the instruction'
- exception AccountNotMutable
Bases:
ProgramError
- code = 3006
- name = 'AccountNotMutable'
- msg = 'The given account is not mutable'
- exception AccountOwnedByWrongProgram
Bases:
ProgramError
- code = 3007
- name = 'AccountOwnedByWrongProgram'
- msg = 'The given account is owned by a different program than expected'
- exception InvalidProgramId
Bases:
ProgramError
- code = 3008
- name = 'InvalidProgramId'
- msg = 'Program ID was not as expected'
- exception InvalidProgramExecutable
Bases:
ProgramError
- code = 3009
- name = 'InvalidProgramExecutable'
- msg = 'Program account is not executable'
- exception AccountNotSigner
Bases:
ProgramError
- code = 3010
- name = 'AccountNotSigner'
- msg = 'The given account did not sign'
- exception AccountNotSystemOwned
Bases:
ProgramError
- code = 3011
- name = 'AccountNotSystemOwned'
- msg = 'The given account is not owned by the system program'
- exception AccountNotInitialized
Bases:
ProgramError
- code = 3012
- name = 'AccountNotInitialized'
- msg = 'The program expected this account to be already initialized'
- exception AccountNotProgramData
Bases:
ProgramError
- code = 3013
- name = 'AccountNotProgramData'
- msg = 'The given account is not a program data account'
- exception AccountNotAssociatedTokenAccount
Bases:
ProgramError
- code = 3014
- name = 'AccountNotAssociatedTokenAccount'
- msg = 'The given account is not the associated token account'
- exception AccountSysvarMismatch
Bases:
ProgramError
- code = 3015
- name = 'AccountSysvarMismatch'
- msg = 'The given public key does not match the required sysvar'
- exception StateInvalidAddress
Bases:
ProgramError
- code = 4000
- name = 'StateInvalidAddress'
- msg = 'The given state account does not have the correct address'
- exception Deprecated
Bases:
ProgramError
- code = 5000
- name = 'Deprecated'
- msg = 'The API being used is deprecated and should no longer be used'
- from_code(code: int) 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]]