#[non_exhaustive]pub enum OccurrenceError {
Show 17 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,
},
TypeClassNotInSchema {
entity: &'static str,
schema: SchemaVersion,
},
UnresolvedType {
id: EntityId,
},
UnknownToken {
entity: &'static str,
attribute: &'static str,
token: String,
},
InvalidMeasure {
entity: &'static str,
attribute: &'static str,
value: String,
},
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 bound release does not pair with it.
Fields
TypingNotPermitted
The class permits no type at all, but one was supplied.
TypeClassNotInSchema
The bound release pairs no type class with this occurrence class,
such as an IFC2X3 IfcStair, whose IfcStairType IFC2X3 does not
declare, but one was supplied (#214).
UnresolvedType
The typed-by reference does not resolve in the model.
UnknownToken
An enumeration token outside the enumeration the bound release
declares for the attribute, such as a ShapeType or BarRole.
Fields
InvalidMeasure
A measure the attribute’s type does not admit: a non-positive or
non-finite IfcPositiveLengthMeasure, or a non-finite
IfcAreaMeasure.
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.
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 on the class. 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.
Trait Implementations§
Source§impl Clone for OccurrenceError
impl Clone for OccurrenceError
Source§fn clone(&self) -> OccurrenceError
fn clone(&self) -> OccurrenceError
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for OccurrenceError
impl Debug for OccurrenceError
Source§impl Display for OccurrenceError
impl Display for OccurrenceError
impl Eq for OccurrenceError
Source§impl Error for OccurrenceError
impl Error for OccurrenceError
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()