// ---------------- [ File: capability-skeleton/src/errors.rs ]
crate::ix!();
error_tree! {
/// Errors that may occur while building/reading/writing a Skeleton.
pub enum SkeletonError {
/// File I/O error reading/writing TOML
IoError(std::io::Error),
/// TOML parse/serialize error
TomlError(toml::de::Error),
TomlWriteError(toml::ser::Error),
/// A structural error, e.g. referencing an out-of-range ID.
InvalidStructure,
/// Depth=0 or other fundamental nonsense
ImpossibleState,
NodeBuildError(derive_builder::UninitializedFieldError),
MissingName,
}
}