/// Errors from the compiler.
#[derive(thiserror::Error, Debug)]
pub enum Error {
/// Failure inside the clang wrapper.
#[error(transparent)]
Clang(#[from] crate::cli::compiler::clang::Error),
/// An entity is missing an expected property.
#[error("entity has no {property} ({entity})")]
UndefinedProperty {
property: &'static str,
entity: String,
},
/// UUID parse error.
#[error(transparent)]
Uuid(#[from] uuid::Error),
}