#[non_exhaustive]pub enum ConstraintError {
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,
},
UnknownEntity {
id: EntityId,
},
DanglingReference {
entity: &'static str,
id: EntityId,
attribute: &'static str,
target: EntityId,
},
ReferenceType {
entity: &'static str,
id: EntityId,
attribute: &'static str,
target: EntityId,
expected: &'static str,
actual: String,
},
Semantic {
entity: &'static str,
id: EntityId,
rule: &'static str,
detail: String,
},
AuthoringInvalid {
entity: &'static str,
attribute: &'static str,
value: String,
},
AuthoringReferenceType {
target: EntityId,
expected: &'static str,
actual: String,
},
MultipleSchemas {
schemas: usize,
},
UnsupportedSchema {
schema: String,
},
AuthoringRequired {
entity: &'static str,
attribute: &'static str,
schema: SchemaVersion,
},
}Expand description
Constraint projection or authoring failure.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
WrongEntityType
Entity kind differs from the requested projection.
MissingAttribute
Required positional attribute is absent or null.
Fields
InvalidValue
Attribute has the wrong value shape or cardinality.
Fields
UnknownEntity
Requested entity is absent.
DanglingReference
Authored or projected reference does not resolve.
Fields
ReferenceType
Resolved reference is outside the declared IFC SELECT/type.
Fields
Semantic
Declared WHERE-style rule failed.
Fields
AuthoringInvalid
Draft value is invalid before staging.
Fields
AuthoringReferenceType
Draft reference is outside the required entity/SELECT.
Fields
MultipleSchemas
The model’s header declares several schemas; authoring binds to exactly one release.
UnsupportedSchema
The model’s header declares one schema with no bundled table, so no layout can be trusted.
AuthoringRequired
The model’s release requires an attribute the authoring call leaves
unset, such as the IFC2X3 IfcRoot.OwnerHistory or the IFC2X3
IfcRelAssociatesConstraint.Intent.
Trait Implementations§
Source§impl Clone for ConstraintError
impl Clone for ConstraintError
Source§impl Debug for ConstraintError
impl Debug for ConstraintError
Source§impl Display for ConstraintError
impl Display for ConstraintError
Source§impl Error for ConstraintError
impl Error for ConstraintError
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()