account_compression/
errors.rs1use anchor_lang::prelude::*;
2
3#[error_code]
4pub enum AccountCompressionErrorCode {
5 #[msg("Integer overflow")]
6 IntegerOverflow,
7 #[msg("InvalidAuthority")]
8 InvalidAuthority,
9 #[msg(
10 "Leaves <> remaining accounts mismatch. The number of remaining accounts must match the number of leaves."
11 )]
12 NumberOfLeavesMismatch,
13 #[msg("Provided noop program public key is invalid")]
14 InvalidNoopPubkey,
15 #[msg("Number of change log indices mismatch")]
16 NumberOfChangeLogIndicesMismatch,
17 #[msg("Number of indices mismatch")]
18 NumberOfIndicesMismatch,
19 #[msg("NumberOfProofsMismatch")]
20 NumberOfProofsMismatch,
21 #[msg("InvalidMerkleProof")]
22 InvalidMerkleProof,
23 #[msg("Could not find the leaf in the queue")]
24 LeafNotFound,
25 #[msg("MerkleTreeAndQueueNotAssociated")]
26 MerkleTreeAndQueueNotAssociated,
27 #[msg("MerkleTreeAlreadyRolledOver")]
28 MerkleTreeAlreadyRolledOver,
29 #[msg("NotReadyForRollover")]
30 NotReadyForRollover,
31 #[msg("RolloverNotConfigured")]
32 RolloverNotConfigured,
33 #[msg("NotAllLeavesProcessed")]
34 NotAllLeavesProcessed,
35 #[msg("InvalidQueueType")]
36 InvalidQueueType,
37 #[msg("InputElementsEmpty")]
38 InputElementsEmpty,
39 #[msg("NoLeavesForMerkleTree")]
40 NoLeavesForMerkleTree,
41 #[msg("InvalidAccountSize")]
42 InvalidAccountSize,
43 #[msg("InsufficientRolloverFee")]
44 InsufficientRolloverFee,
45 #[msg("Unsupported Merkle tree height")]
46 UnsupportedHeight,
47 #[msg("Unsupported canopy depth")]
48 UnsupportedCanopyDepth,
49 #[msg("Invalid sequence threshold")]
50 InvalidSequenceThreshold,
51 #[msg("Unsupported close threshold")]
52 UnsupportedCloseThreshold,
53 #[msg("InvalidAccountBalance")]
54 InvalidAccountBalance,
55 UnsupportedAdditionalBytes,
56 InvalidGroup,
57 ProofLengthMismatch,
58}