pub enum ElementError {
Show 13 variants
Name(NameError),
Attribute(AttributeError),
MissingTypeLabel,
UnknownElementType {
type_id: String,
},
DuplicateParameterName {
name: String,
},
DuplicateResultParameterName {
name: String,
},
UnknownConfigurationParameter {
name: String,
},
ParameterNameCollidesWithAttribute {
name: String,
},
InvalidMaxConcurrency,
GroupConcurrencyExceedsGlobal {
group: u32,
global: u32,
},
MissingRequiredLabel {
key: String,
},
ForbiddenLabelPresent {
key: String,
reason: String,
},
EmptyTokenExpr,
}Expand description
Errors from Element construction and validation.
Variants§
Name(NameError)
A name-validation error bubbled up (e.g. the type label value
wasn’t a valid TypeId).
Attribute(AttributeError)
An attribute-layer namespace check failed.
MissingTypeLabel
The element’s labels are missing the type entry required
by SRD-0007 D8.
UnknownElementType
The element’s type label names a type that isn’t registered.
DuplicateParameterName
Two Parameters in Element.parameters share a name.
DuplicateResultParameterName
Two Parameters in Element.result_parameters share a name.
UnknownConfigurationParameter
A configuration key references a parameter the element doesn’t declare.
ParameterNameCollidesWithAttribute
A parameter name collides with a label / tag / port on the same element.
InvalidMaxConcurrency
max_concurrency is set to zero.
GroupConcurrencyExceedsGlobal
max_group_concurrency exceeds max_concurrency.
MissingRequiredLabel
A required label (declared by the type descriptor) is absent.
ForbiddenLabelPresent
A forbidden label (declared by the type descriptor) is present.
EmptyTokenExpr
A TokenExpr was constructed from an empty string.
Trait Implementations§
Source§impl Debug for ElementError
impl Debug for ElementError
Source§impl Display for ElementError
impl Display for ElementError
Source§impl Error for ElementError
impl Error for ElementError
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()