activecube-rs 0.1.16

A generic GraphQL-to-SQL OLAP query engine library
Documentation
/// Cube query compilation error (framework-agnostic).
#[derive(Debug, Clone)]
pub struct CompileError {
    pub message: String,
}

impl std::fmt::Display for CompileError {
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        f.write_str(&self.message)
    }
}

impl std::error::Error for CompileError {}

impl CompileError {
    pub fn new(msg: impl Into<String>) -> Self {
        Self { message: msg.into() }
    }
}