MCPcopy Create free account
hub / github.com/solana-program/system / SystemError

Enum SystemError

interface/src/error.rs:12–31  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10)]
11#[derive(Clone, Debug, PartialEq, Eq)]
12pub enum SystemError {
13 /// An account with the same address already exists.
14 AccountAlreadyInUse,
15 /// Account does not have enough SOL to perform the operation.
16 ResultWithNegativeLamports,
17 /// Cannot assign account to this program id.
18 InvalidProgramId,
19 /// Cannot allocate account data of this length.
20 InvalidAccountDataLength,
21 /// Length of requested seed is too long.
22 MaxSeedLengthExceeded,
23 /// Provided address does not match addressed derived from seed.
24 AddressWithSeedMismatch,
25 /// Advancing stored nonce requires a populated RecentBlockhashes sysvar.
26 NonceNoRecentBlockhashes,
27 /// Stored nonce is still in recent_blockhashes.
28 NonceBlockhashNotExpired,
29 /// Specified nonce does not match stored nonce.
30 NonceUnexpectedBlockhashValue,
31}
32
33impl FromPrimitive for SystemError {
34 #[inline]

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…