hpl_toolkit/
errors.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
use anchor_lang::prelude::error_code;

#[error_code]
pub enum HplToolkitError {
    #[msg("Opertaion overflowed")]
    Overflow,

    #[msg("NFT validation failed")]
    InvalidNFT,

    #[msg("Invalid New Authority Record")]
    InvalidNewAuthorityRecord,

    #[msg("Tree provided in context is not active at the moment")]
    TreeNotActive,

    #[msg("Tree does not have any capacity to add more leaves")]
    TreeFull,

    #[msg("Active tree does not exist")]
    ActiveTreeNotFound,
}