hpl_toolkit/errors.rs
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,
}