use err_derive::Error;
#[derive(Debug, Error)]
pub enum Error {
#[error(display = "Gltf import error")]
GltfImporterError,
#[error(
display = "Gltf has no default scene, and the number of scenes is not 1: {}",
_0
)]
InvalidSceneGltf(usize),
#[error(display = "Primitive missing positions")]
MissingPositions,
#[error(display = "Channel missing inputs")]
MissingInputs,
#[error(display = "Channel missing outputs")]
MissingOutputs,
#[error(display = "Not implemented")]
NotImplemented,
#[error(display = "Loaded buffer does not match required length")]
BufferLength(gltf::json::Path),
}