capability_grower_configuration/
errors.rs

1// ---------------- [ File: capability-grower-configuration/src/errors.rs ]
2crate::ix!();
3
4error_tree!{
5    pub enum GrowerTreeConfigurationError {
6
7        GrowerTreeConfigurationBuilderError(GrowerTreeConfigurationBuilderError),
8
9        ValidationError,
10        IoError(std::io::Error),
11        TomlDeError(toml::de::Error),
12        TomlSerError(toml::ser::Error),
13
14        DepthMustBeAtLeastOne,
15        BreadthMustBeAtLeastOne,
16        DensityMustBeAtLeastOne,
17
18        LeafGranularityMustBeWithinZeroOne,
19        BalanceSymmetryMustBeWithinZeroOne,
20
21        // Level-specific arrays
22        LevelSpecificBreadthLenExceedsDepth,
23        LevelSpecificDensityLenExceedsDepth,
24
25        // Weighted Branching
26        WeightedBranchMeanLessThanVariance,
27        WeightedBranchMeanCannotBeZero,
28
29        // Level Skipping
30        LeafProbabilityLenExceedsDepth,
31        LeafProbabilityOutOfRange,
32
33        // Capstone
34        CapstoneProbabilityOutOfRange,
35
36        // AI Confidence
37        AIConfidenceFactorNegative,
38        AIConfidenceMissing,
39    }
40}