Enum solana_sdk::native_program::ProgramError
source · pub enum ProgramError {
GenericError,
InvalidArgument,
ResultWithNegativeTokens,
UnbalancedInstruction,
ModifiedProgramId,
ExternalAccountTokenSpend,
InvalidUserdata,
UserdataTooSmall,
AssignOfUnownedAccount,
AccountNotFinalized,
}
Expand description
Reasons a program might have rejected an instruction.
Variants
GenericError
The program instruction returned an error
InvalidArgument
The arguments provided to a program instruction where invalid
ResultWithNegativeTokens
An instruction resulted in an account with a negative balance The difference from InsufficientFundsForFee is that the transaction was executed by the contract
UnbalancedInstruction
Program’s instruction token balance does not equal the balance after the instruction
ModifiedProgramId
Program modified an account’s program id
ExternalAccountTokenSpend
Program spent the tokens of an account that doesn’t belong to it
InvalidUserdata
An account’s userdata contents was invalid
UserdataTooSmall
An account’s userdata was too small
AssignOfUnownedAccount
SystemInstruction::Assign was attempted on an account unowned by the system program
AccountNotFinalized
SystemInstruction::Spawn was attempted on an account that was not finalized by LoaderInstruction::Finalize
Trait Implementations
sourceimpl Clone for ProgramError
impl Clone for ProgramError
sourcefn clone(&self) -> ProgramError
fn clone(&self) -> ProgramError
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more