Expand description
Error types for program operations Error types and handling for Arch VM programs.
This module defines the standard error types that can be returned by programs running in the Arch VM environment. It provides a uniform way to represent, decode, and display program errors, allowing for consistent error handling across the platform.
The error system is designed to be compatible with program-specific custom errors while also providing a set of standard error types for common failure scenarios.
Enums§
- ProgramError 
- Reasons the program may fail
Constants§
- ACCOUNT_ALREADY_ INITIALIZED 
- ACCOUNT_BORROW_ FAILED 
- ACCOUNT_DATA_ TOO_ SMALL 
- ACCOUNT_NOT_ ANCHORED 
- ACCOUNT_NOT_ RENT_ EXEMPT 
- ARITHMETIC_OVERFLOW 
- BORSH_IO_ ERROR 
- BUILTIN_BIT_ SHIFT 
- Builtin return values occupy the upper 32 bits
- BUILTIN_PROGRAMS_ MUST_ CONSUME_ COMPUTE_ UNITS 
- CUSTOM_ZERO 
- EXECUTABLE_LAMPORT_ CHANGE 
- FROM_HEX_ ERROR 
- 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 
- NEGATIVE_ACCOUNT_ LAMPORTS 
- NOT_ENOUGH_ ACCOUNT_ KEYS 
- READONLY_LAMPORT_ CHANGE 
- UNINITIALIZED_ACCOUNT 
- UNSUPPORTED_SYSVAR