capability_skeleton/errors.rs
1// ---------------- [ File: capability-skeleton/src/errors.rs ]
2crate::ix!();
3
4error_tree! {
5 /// Errors that may occur while building/reading/writing a Skeleton.
6 pub enum SkeletonError {
7 /// File I/O error reading/writing TOML
8 IoError(std::io::Error),
9
10 /// TOML parse/serialize error
11 TomlError(toml::de::Error),
12 TomlWriteError(toml::ser::Error),
13
14 /// A structural error, e.g. referencing an out-of-range ID.
15 InvalidStructure,
16
17 /// Depth=0 or other fundamental nonsense
18 ImpossibleState,
19
20 NodeBuildError(derive_builder::UninitializedFieldError),
21
22 MissingName,
23 }
24}