use thiserror::Error;
use crate::prelude::*;
#[derive(Debug, Error)]
#[error("Attempted to get a segmented path from an opaque path.")]
pub struct PathIsOpaque;
#[derive(Debug, Error)]
pub enum SetPathError {
#[error(transparent)] InsertNotFound(#[from] InsertNotFound),
#[error(transparent)] RangeNotFound (#[from] RangeNotFound ),
#[error(transparent)] CantBeEmpty (#[from] CantBeEmpty ),
#[error(transparent)] PathIsOpaque (#[from] PathIsOpaque ),
#[error(transparent)] TooLong (#[from] TooLong ),
}