Docs.rs
  • solana-program-3.0.0
    • solana-program 3.0.0
    • Permalink
    • Docs.rs crate page
    • Apache-2.0
    • Links
    • Homepage
    • Repository
    • crates.io
    • Source
    • Owners
    • anza-team
    • Dependencies
      • memoffset ^0.9 normal
      • solana-account-info ^3.0.0 normal
      • solana-big-mod-exp ^3.0.0 normal
      • solana-blake3-hasher ^3.0.0 normal
      • solana-borsh ^3.0.0 normal optional
      • solana-clock ^3.0.0 normal
      • solana-cpi ^3.0.0 normal
      • solana-epoch-rewards ^3.0.0 normal
      • solana-epoch-schedule ^3.0.0 normal
      • solana-epoch-stake ^3.0.0 normal
      • solana-fee-calculator ^3.0.0 normal
      • solana-frozen-abi ^3.0.0 normal optional
      • solana-frozen-abi-macro ^3.0.0 normal optional
      • solana-hash ^3.0.0 normal
      • solana-instruction ^3.0.0 normal
      • solana-instruction-error ^2.0.0 normal
      • solana-instructions-sysvar ^3.0.0 normal
      • solana-keccak-hasher ^3.0.0 normal
      • solana-last-restart-slot ^3.0.0 normal
      • solana-msg ^3.0.0 normal
      • solana-native-token ^3.0.0 normal
      • solana-program-entrypoint ^3.0.0 normal
      • solana-program-error ^3.0.0 normal
      • solana-program-memory ^3.0.0 normal
      • solana-program-option ^3.0.0 normal
      • solana-program-pack ^3.0.0 normal
      • solana-pubkey ^3.0.0 normal
      • solana-rent ^3.0.0 normal
      • solana-sdk-ids ^3.0.0 normal
      • solana-secp256k1-recover ^3.0.0 normal
      • solana-serde-varint ^3.0.0 normal
      • solana-serialize-utils ^3.0.0 normal
      • solana-sha256-hasher ^3.0.0 normal
      • solana-short-vec ^3.0.0 normal
      • solana-slot-hashes ^3.0.0 normal
      • solana-slot-history ^3.0.0 normal
      • solana-stable-layout ^3.0.0 normal
      • solana-system-interface ^2.0 normal optional
      • solana-sysvar ^3.0.0 normal
      • solana-sysvar-id ^3.0.0 normal
      • solana-pubkey ^3.0.0 dev
      • solana-sysvar ^3.0.0 dev
      • solana-example-mocks ^3.0.0 normal
      • solana-define-syscall ^3.0.0 normal
    • Versions
    • 75.56% of the crate is documented
  • Platform
    • x86_64-unknown-linux-gnu
  • Feature flags
  • docs.rs
    • About docs.rs
    • Badges
    • Builds
    • Metadata
    • Shorthand URLs
    • Download
    • Rustdoc JSON
    • Build queue
    • Privacy policy
  • Rust
    • Rust website
    • The Book
    • Standard Library API Reference
    • Rust by Example
    • The Cargo Guide
    • Clippy Documentation

solana_program3.0.0

Module program_error

Module Items

  • Enums
  • Constants

In crate solana_program

solana_program

Module program_error

Source

Enums§

ProgramError
Reasons the program may fail

Constants§

ACCOUNT_ALREADY_INITIALIZED
ACCOUNT_BORROW_FAILED
ACCOUNT_DATA_TOO_SMALL
ACCOUNT_NOT_RENT_EXEMPT
ARITHMETIC_OVERFLOW
BORSH_IO_ERROR
BUILTIN_PROGRAMS_MUST_CONSUME_COMPUTE_UNITS
CUSTOM_ZERO
ILLEGAL_OWNER
IMMUTABLE
INCORRECT_AUTHORITY
INCORRECT_PROGRAM_ID
INSUFFICIENT_FUNDS
INVALID_ACCOUNT_DATA
INVALID_ACCOUNT_DATA_REALLOC
INVALID_ACCOUNT_OWNER
INVALID_ARGUMENT
INVALID_INSTRUCTION_DATA
INVALID_SEEDS
MAX_ACCOUNTS_DATA_ALLOCATIONS_EXCEEDED
MAX_INSTRUCTION_TRACE_LENGTH_EXCEEDED
MAX_SEED_LENGTH_EXCEEDED
MISSING_REQUIRED_SIGNATURES
NOT_ENOUGH_ACCOUNT_KEYS
UNINITIALIZED_ACCOUNT
UNSUPPORTED_SYSVAR