pub enum DeclarationError {
AlreadyDeclared,
NoValueAvailable,
OverrideValueTypeMismatch,
PriorValueTypeMismatch,
InitialValueOutOfRange,
InvalidRange,
}
Expand description
Error that can be generated when doing operations on parameters.
Variants§
AlreadyDeclared
Parameter was already declared and a new declaration was attempted.
NoValueAvailable
Parameter was declared as non optional but no value was available, either through a user specified default, a command-line override, or a previously set value.
OverrideValueTypeMismatch
The override value that was provided has the wrong type. This error is bypassed
when using ParameterBuilder::ignore_override()
.
PriorValueTypeMismatch
The value that the parameter was already set to has the wrong type. This error
is bypassed when using ParameterBuilder::discard_mismatching_prior_value
.
InitialValueOutOfRange
The initial value that was selected is out of range.
InvalidRange
An invalid range was provided to a parameter declaration (i.e. lower bound > higher bound).
Trait Implementations§
Source§impl Debug for DeclarationError
impl Debug for DeclarationError
Source§impl Display for DeclarationError
impl Display for DeclarationError
Source§impl Error for DeclarationError
impl Error for DeclarationError
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 DeclarationError
impl RefUnwindSafe for DeclarationError
impl Send for DeclarationError
impl Sync for DeclarationError
impl Unpin for DeclarationError
impl UnwindSafe for DeclarationError
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