pub enum PlanError {
Show 15 variants
WrongModel {
spec_model: String,
schema_model: String,
},
NoReplicates,
Measure(MeasureError),
Stop(StopError),
UnknownAction {
id: String,
known: Vec<&'static str>,
},
DuplicateActionName {
name: String,
},
Fixed(ValueError),
UnknownFixed {
id: String,
known: Vec<&'static str>,
},
FixedAndVaried {
id: String,
block: usize,
},
VariedTwice {
target: FactorTarget,
block: usize,
},
Factor {
block: usize,
source: FactorError,
},
TableWithFactors {
block: usize,
},
Table {
block: usize,
source: DesignTableError,
},
Design {
block: usize,
source: DesignError,
},
TooManyRuns,
}Expand description
A sweep spec that cannot be planned against a model.
Variants§
WrongModel
A spec for model spec_model, checked against model schema_model.
Fields
NoReplicates
A replicate count of 0.
Measure(MeasureError)
Run and sampling settings under which a run cannot be measured.
Stop(StopError)
A stop condition over no stat label.
UnknownAction
An action id the model does not declare.
DuplicateActionName
A name that two actions of the spec share.
Fixed(ValueError)
A fixed value that the model rejects.
UnknownFixed
A fixed value for an id that no parameter has.
FixedAndVaried
Parameter id, varied in block block and fixed as well.
VariedTwice
A target varied twice in block block.
Fields
target: FactorTargetParameter or action tick varied twice.
Factor
A rejected factor of block block.
Fields
source: FactorErrorReason the factor is rejected.
TableWithFactors
A table design in block block that lists its own factors.
Table
A rejected design table of block block.
Fields
source: DesignTableErrorReason the table is rejected.
Design
Block block, whose design cannot combine its factors.
Fields
source: DesignErrorReason the design cannot combine the factors.
TooManyRuns
More runs than MAX_RUNS.
Trait Implementations§
Source§impl Error for PlanError
impl Error for PlanError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()