| 10 | )] |
| 11 | #[derive(Clone, Debug, PartialEq, Eq)] |
| 12 | pub 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 | |
| 33 | impl FromPrimitive for SystemError { |
| 34 | #[inline] |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…