use thiserror::Error;
use crate::error::BoxError;
#[derive(Debug, Error)]
pub enum RenderError {
#[error(
"No element was marked with 'HASHIRA_ROOT' marker, ex. <div id={{HASHIRA_ROOT}}></div>"
)]
NoRoot,
#[error("Failed to serialize the page props: {0}")]
InvalidProps(serde_json::Error),
#[error("Failed to render one of the chunks: {0}")]
ChunkError(BoxError),
}