pub enum BuilderError {
DuplicateParameter(Parameter),
DuplicateVariable(Variable),
DuplicateLocation(Location),
DuplicateRuleId(Box<Rule>, Box<Rule>),
MalformedRule(Box<Rule>, String),
MalformedAction(Box<Action>, String),
MalformedResilienceCondition(Box<ParameterConstraint>, String),
MalformedInitialLocationConstraint(Box<LocationConstraint>, String),
MalformedInitialVariableConstraint(Box<BooleanVarConstraint>, String),
NameClash(String),
UnknownComponent(String),
}Expand description
Errors that can occur during the construction of a threshold automaton
Variants§
DuplicateParameter(Parameter)
A parameter with the same name was added multiple times
DuplicateVariable(Variable)
A variable with the same name was added multiple times
DuplicateLocation(Location)
A location with the same name was added multiple times
DuplicateRuleId(Box<Rule>, Box<Rule>)
A rule with the same id was added multiple times
MalformedRule(Box<Rule>, String)
A rule is malformed
MalformedAction(Box<Action>, String)
An action is malformed
MalformedResilienceCondition(Box<ParameterConstraint>, String)
A resilience condition is malformed
MalformedInitialLocationConstraint(Box<LocationConstraint>, String)
An initial location constraint is malformed
MalformedInitialVariableConstraint(Box<BooleanVarConstraint>, String)
An initial variable constraint is malformed
NameClash(String)
The same name was used multiple times for different components
UnknownComponent(String)
An unknown component was used in a constraint
Trait Implementations§
Source§impl Clone for BuilderError
impl Clone for BuilderError
Source§fn clone(&self) -> BuilderError
fn clone(&self) -> BuilderError
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for BuilderError
impl Debug for BuilderError
Source§impl Display for BuilderError
impl Display for BuilderError
Source§impl Error for BuilderError
impl Error for BuilderError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Auto Trait Implementations§
impl Freeze for BuilderError
impl RefUnwindSafe for BuilderError
impl Send for BuilderError
impl Sync for BuilderError
impl Unpin for BuilderError
impl UnwindSafe for BuilderError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more