#[non_exhaustive]pub enum OccurrenceError {
Show 14 variants
MalformedGuid {
value: String,
},
UnknownPredefinedType {
entity: &'static str,
token: String,
},
NoPredefinedType {
entity: &'static str,
},
UserDefinedWithoutObjectType {
entity: &'static str,
},
WrongTypeClass {
entity: &'static str,
expected: &'static str,
found: String,
},
TypingNotPermitted {
entity: &'static str,
},
UnresolvedType {
id: EntityId,
},
MultipleSchemas {
schemas: usize,
},
UnsupportedSchema {
schema: String,
},
EntityNotInSchema {
entity: &'static str,
schema: SchemaVersion,
},
AuthoringNotInSchema {
entity: &'static str,
attribute: &'static str,
schema: SchemaVersion,
},
AuthoringRequired {
entity: &'static str,
attribute: &'static str,
schema: SchemaVersion,
},
UnresolvedOwnerHistory {
id: EntityId,
},
NotAnOwnerHistory {
id: EntityId,
found: String,
},
}Expand description
Why an occurrence was refused.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
MalformedGuid
GlobalId did not parse as a 22-character IFC GUID.
UnknownPredefinedType
The token is not a member of this class’s own enum.
NoPredefinedType
The class has no PredefinedType attribute at all.
UserDefinedWithoutObjectType
USERDEFINED was given without an ObjectType naming it.
WrongTypeClass
The occurrence was typed by a class the schema does not pair with it.
Fields
TypingNotPermitted
The class permits no type at all, but one was supplied.
UnresolvedType
The typed-by reference does not resolve in the model.
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.
EntityNotInSchema
The model’s release does not declare the class, or declares it
abstract, such as IfcBorehole (IFC4X3 only) in an IFC4 model.
AuthoringNotInSchema
A value for an attribute the model’s release does not declare. It is refused rather than dropped.
Fields
schema: SchemaVersionThe release the model declares.
AuthoringRequired
The model’s release requires an attribute the call leaves unset,
such as the IFC2X3 IfcRoot.OwnerHistory.
Fields
schema: SchemaVersionThe release the model declares.
UnresolvedOwnerHistory
The owner-history reference resolves neither in the model nor on the transaction.
NotAnOwnerHistory
The owner-history reference is not an IfcOwnerHistory.