Skip to main content

rlox_rl_ops/
error.rs

1/// Error type for `rlox-rl-ops`.
2///
3/// Kept minimal: only the `ShapeMismatch` variant is needed for the arithmetic
4/// ops in this crate.  The crate has zero dependency on `rlox-core::error`.
5#[derive(Debug, thiserror::Error)]
6pub enum RlOpsError {
7    #[error("shape mismatch: expected {expected}, got {got}")]
8    ShapeMismatch { expected: String, got: String },
9}