haloumi_core/
error.rs

1//! Error type.
2
3use crate::table::Any;
4use thiserror::Error;
5
6/// Core error type.
7#[derive(Error, Copy, Clone, Debug)]
8pub enum Error {
9    /// Unexpected column type when Fixed was expected.
10    #[error("Expected Any::Fixed. Got {0:?}")]
11    ExpectedFixed(Any),
12    /// Unexpected column type when Advice was expected.
13    #[error("Expected Any::Advice. Got {0:?}")]
14    ExpectedAdvice(Any),
15    /// Unexpected column type when Instance was expected.
16    #[error("Expected Any::Instance. Got {0:?}")]
17    ExpectedInstance(Any),
18}