#[non_exhaustive]pub enum MaterialError {
WrongEntityType {
expected: &'static str,
actual: String,
},
MissingAttribute {
entity: &'static str,
id: EntityId,
attribute: &'static str,
},
InvalidValue {
entity: &'static str,
id: EntityId,
attribute: &'static str,
value: String,
},
AuthoringInvalid {
entity: &'static str,
attribute: &'static str,
value: String,
},
AuthoringReferenceType {
target: EntityId,
expected: &'static str,
actual: String,
},
UnknownEntity {
id: EntityId,
},
DanglingReference {
source_id: EntityId,
target: EntityId,
},
ReferenceType {
source_id: EntityId,
target: EntityId,
expected: &'static str,
actual: String,
},
AmbiguousAssignment {
object: EntityId,
count: usize,
},
AmbiguousType {
object: EntityId,
count: usize,
},
}Expand description
A malformed, ambiguous, or unresolved material projection.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
WrongEntityType
A projection expected one entity type but the model holds another.
Fields
MissingAttribute
A required attribute slot on the entity is absent (unset $).
Fields
InvalidValue
An attribute is present but its value violates a WHERE rule or type constraint.
Fields
AuthoringInvalid
A value supplied to an authoring function cannot be written to the named entity attribute.
Fields
AuthoringReferenceType
An authoring-time reference points at an entity of the wrong type.
Fields
UnknownEntity
A referenced entity id does not exist in the model.
DanglingReference
A reference field points at an id absent from the model.
Fields
ReferenceType
A reference resolves to an entity, but of the wrong type.
Fields
AmbiguousAssignment
The object is directly related to more than one IfcMaterial
via IfcRelAssociatesMaterial, so the single active material cannot
be determined.
Fields
AmbiguousType
The object is typed by more than one IfcTypeObject, so its
inherited material cannot be determined unambiguously.
Trait Implementations§
Source§impl Clone for MaterialError
impl Clone for MaterialError
Source§impl Debug for MaterialError
impl Debug for MaterialError
Source§impl Display for MaterialError
impl Display for MaterialError
Source§impl Error for MaterialError
impl Error for MaterialError
1.30.0 · 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()