use thiserror::Error;
#[derive(Debug, Error)]
#[non_exhaustive]
pub enum RegistryError {
#[error("could not parse model id: {0}")]
Parse(String),
#[error("no engine descriptor registered that accepts model id {0:?}")]
NoMatchingDescriptor(String),
#[error("model id resolved but the model file is missing on disk: {0:?}")]
MissingModelFile(std::path::PathBuf),
}