#[derive(Debug)]
pub enum RenderError {
EmptyDocument,
}
impl std::fmt::Display for RenderError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match self {
RenderError::EmptyDocument => write!(f, "document has no content to render"),
}
}
}
impl std::error::Error for RenderError {}