You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
DeclarationError::AlreadyDeclared => write!(f,"parameter was already declared, but a new declaration was attempted"),
663
+
DeclarationError::NoValueAvailable => {
664
+
write!(f,"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")
665
+
},
666
+
DeclarationError::OverrideValueTypeMismatch => {
667
+
write!(f,"the override value that was provided has the wrong type")
668
+
},
669
+
DeclarationError::PriorValueTypeMismatch => {
670
+
write!(f,"the value that the parameter was already set to has the wrong type")
671
+
},
672
+
DeclarationError::InitialValueOutOfRange => write!(f,"the initial value that was selected is out of range"),
673
+
DeclarationError::InvalidRange => write!(f,"an invalid range was provided to a parameter declaration (i.e. lower bound > higher bound)"),
674
+
}
675
+
}
676
+
}
677
+
678
+
impl std::error::ErrorforDeclarationError{}
679
+
647
680
impl<'a>Parameters<'a>{
648
681
/// Tries to read a parameter of the requested type.
0 commit comments