amalgam_core/error.rs
1use thiserror::Error;
2
3#[derive(Error, Debug)]
4pub enum CoreError {
5 #[error("Type conversion error: {0}")]
6 TypeConversion(String),
7
8 #[error("Invalid type definition: {0}")]
9 InvalidType(String),
10
11 #[error("Unsupported feature: {0}")]
12 UnsupportedFeature(String),
13
14 #[error("Internal error: {0}")]
15 Internal(String),
16}