Skip to main content

squid_n_core/
error.rs

1use thiserror::Error;
2
3#[derive(Error, Debug, Clone, PartialEq, Eq)]
4pub enum CoreError {
5    #[error("duplicate id: {0}")]
6    DuplicateId(String),
7    #[error("dangling reference: {0}")]
8    DanglingRef(String),
9    #[error("index mismatch: {0}")]
10    IndexMismatch(String),
11}