use thiserror::Error;
use crate::ConstString;
#[derive(Error, Debug)]
pub enum Error {
#[error("the subtree with the index {index} cannot be found")]
SubtreeNotFound {
index: usize,
},
#[error("an invalid request type {value} was sent from Groot2")]
InvalidRequestType {
value: u8,
},
#[error("recursion limit of '127' is reached for behavior {behavior}")]
RecursionLimit {
behavior: ConstString,
},
}