use thiserror::Error;
#[derive(Debug, Error)]
pub enum Error {
#[error("Unsupported type: {0}")]
UnsupportedType(String),
#[error("Invalid identifier: {0}")]
InvalidIdentifier(String),
#[error("Circular reference detected")]
CircularReference,
#[error("Generic constraint error: {0}")]
GenericConstraint(String),
#[error("IO error: {0}")]
Io(#[from] std::io::Error),
#[error("Configuration error: {0}")]
Configuration(String),
}
pub type Result<T> = std::result::Result<T, Error>;