#[non_exhaustive]pub enum ElementTypeError {
Invalid {
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,
},
MissingEntity {
id: EntityId,
},
}Expand description
Why a type definition was refused.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Invalid
An attribute value the schema does not permit.
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 type, or declares it
abstract, such as IfcDoorType (IFC4 on) in an IFC2X3 model.
AuthoringNotInSchema
A value for an attribute the model’s release does not declare, such
as a PredefinedType for an IFC2X3 type that has none. 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.
MissingEntity
A referenced entity, such as the owner history, resolves neither in the model nor on the transaction.
Trait Implementations§
Source§impl Clone for ElementTypeError
impl Clone for ElementTypeError
Source§impl Debug for ElementTypeError
impl Debug for ElementTypeError
Source§impl Display for ElementTypeError
impl Display for ElementTypeError
impl Eq for ElementTypeError
Source§impl Error for ElementTypeError
impl Error for ElementTypeError
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()