use thiserror::Error;
use crate::Id;
#[derive(Debug, Error)]
pub enum InvalidIdError {
#[error(transparent)]
Length(#[from] arrayvec::CapacityError),
#[error("should contain one and only '/' as separator")]
InvalidParts,
}
#[derive(Debug, Error)]
#[error("resource not found for {id}")]
pub struct ResNotFoundError<T> {
#[from]
id: Id<T>,
}