#[non_exhaustive]pub enum StyleError {
UnknownEntity {
id: EntityId,
},
WrongEntityType {
id: EntityId,
expected: &'static str,
actual: String,
},
UnsupportedEntity {
schema: String,
entity: &'static str,
},
MissingAttribute {
entity: String,
id: EntityId,
attribute: &'static str,
},
InvalidValue {
entity: String,
id: EntityId,
attribute: &'static str,
value: String,
},
UnsupportedAttribute {
schema: String,
entity: &'static str,
attribute: &'static str,
},
DanglingReference {
source_id: EntityId,
target: EntityId,
},
ReferenceType {
target: EntityId,
expected: &'static str,
actual: String,
},
AuthoringInvalid {
entity: &'static str,
attribute: &'static str,
value: String,
},
OutOfRange {
entity: &'static str,
id: EntityId,
attribute: &'static str,
value: f64,
minimum: f64,
maximum: f64,
},
AmbiguousStyleAssignment {
item: EntityId,
count: usize,
},
}Expand description
A malformed, unresolved, or unsupported presentation contract.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
UnknownEntity
An entity id was looked up but the model does not contain it.
WrongEntityType
An entity was read as one IFC type but is actually another.
Fields
UnsupportedEntity
The active schema does not declare the requested entity type.
Fields
MissingAttribute
A mandatory attribute was absent, so the value cannot be inferred.
Fields
InvalidValue
An attribute was present but held the wrong kind of value.
Fields
UnsupportedAttribute
The active schema declares the entity but not the requested attribute slot.
Fields
DanglingReference
A reference attribute pointed at an entity id the model does not contain.
Fields
ReferenceType
A reference resolved, but the target is not the IFC type (or select member) the referencing slot requires.
Fields
AuthoringInvalid
An authoring helper was given a value it cannot encode for the target attribute.
Fields
OutOfRange
A normalized-ratio or bounded measure fell outside its required range.
Fields
AmbiguousStyleAssignment
More than one IfcStyledItem directly assigned styles to the same
representation item; cascade resolution refuses to guess a winner.
Trait Implementations§
Source§impl Clone for StyleError
impl Clone for StyleError
Source§impl Debug for StyleError
impl Debug for StyleError
Source§impl Display for StyleError
impl Display for StyleError
Source§impl Error for StyleError
impl Error for StyleError
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()