hpl_toolkit/
errors.rs

1use anchor_lang::prelude::error_code;
2
3#[error_code]
4pub enum HplToolkitError {
5    #[msg("Opertaion overflowed")]
6    Overflow,
7
8    #[msg("NFT validation failed")]
9    InvalidNFT,
10
11    #[msg("Invalid New Authority Record")]
12    InvalidNewAuthorityRecord,
13
14    #[msg("Tree provided in context is not active at the moment")]
15    TreeNotActive,
16
17    #[msg("Tree does not have any capacity to add more leaves")]
18    TreeFull,
19
20    #[msg("Active tree does not exist")]
21    ActiveTreeNotFound,
22
23    #[msg("Schema container is empty")]
24    SchemaContainerEmpty
25}