Errors
Every refusal the program can return.
| Code | Name | Message | Raised by |
|---|---|---|---|
| 6000 | ZeroAmount | Amount must be greater than zero | deposit, withdraw, spend, earn |
| 6001 | NameTooLong | Wallet name is longer than 24 bytes | add_agent |
| 6002 | UnknownCategory | Unknown spend category | spend |
| 6003 | Frozen | This wallet is frozen | spend |
| 6004 | CategoryNotAllowed | This wallet may not pay for that category | spend |
| 6005 | OverPerTxLimit | Amount is over the wallet's per-payment limit | spend |
| 6006 | OverDailyLimit | Amount would take the wallet over its daily limit | spend |
| 6007 | InsufficientBalance | The shared balance does not cover this amount | withdraw, spend |
| 6008 | NothingToSeal | No entries since the last seal | seal |
| 6009 | Overflow | Arithmetic overflow | spend |
Account checks that fail before the instruction runs (a wallet that belongs to another book, a signer that isn't the owner) return Anchor's own constraint errors, not these.
NextTerms