Skip to main content

reclaim/
errors.rs

1use anchor_lang::prelude::*;
2
3#[error_code]
4pub enum ReclaimError {
5    #[msg("Invalid Epoch Duration")]
6    InvalidEpochDuration,
7    #[msg("Invalid Epoch Index")]
8    InvalidEpochIndex,
9    #[msg("Invalid Witness")]
10    InvalidWitness,
11    #[msg("Unauthorized address")]
12    Unauthorized,
13    #[msg("Host length exceeds limit")]
14    HostTooLong,
15    #[msg("Provider length exceeds limit")]
16    ProviderTooLong,
17    #[msg("Invalid Witnes Claim count")]
18    InvalidWitnessClaimCount,
19    #[msg("Epoch already exists")]
20    EpochAlreadyExists,
21    #[msg("Max Epochs reached")]
22    MaxEpochLengthReached,
23    #[msg("Max Witnesses reached")]
24    MaxWitnessesReached,
25    #[msg("Member already exists")]
26    MemberAlreadyExists,
27    #[msg("Max Members reached")]
28    MaxMembersReached,
29    #[msg("Invalid Identifier")]
30    InvalidIdentifier,
31    #[msg("Invalid Witness Signature")]
32    InvalidWitnessSignature,
33    #[msg("Arithmetic Error")]
34    ArithmeticPanic,
35}