1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
use crate::Op; /// Error type for PauliGraph operations and input validation. #[derive(Debug, thiserror::Error)] pub enum PauliGraphError { /// Invalid operation within a PauliGraph. #[error("Invalid PauliGraph Op: {op:?}, {message}")] InvalidOp { /// The invalid operation. op: Op, /// The error message. message: String, }, /// Invalid input JSON during deserialization. #[error("Invalid input JSON: {0}")] InvalidInputJson(String), }