pachy-core 0.1.0

Core traits and types for the Pachycephalosaurus web framework
Documentation
use thiserror::Error;

#[derive(Debug, Error)]
pub enum PachyError {
    #[error("render error: {0}")]
    Render(String),

    #[error("routing error: {0}")]
    Routing(String),

    #[error("server error: {0}")]
    Server(String),

    #[error("not found: {0}")]
    NotFound(String),

    #[error("IO error: {0}")]
    Io(#[from] std::io::Error),
}