#[non_exhaustive]pub enum SpatialAuthoringError {
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,
},
AuthoringValueType {
entity: &'static str,
attribute: &'static str,
declared: &'static str,
schema: SchemaVersion,
},
AuthoringRequired {
entity: &'static str,
attribute: &'static str,
schema: SchemaVersion,
},
MissingReference {
entity: &'static str,
attribute: &'static str,
target: EntityId,
},
WrongReferenceType {
entity: &'static str,
attribute: &'static str,
target: EntityId,
actual: String,
expected: &'static str,
},
}Expand description
Why a spatial record was refused.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Invalid
A value the schema constrains was not acceptable.
Fields
MultipleSchemas
The model’s header declares several schemas; release-bound authoring binds to exactly one.
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 this entity, such as
IfcRelDeclares in IFC2X3 or IfcRelPositions outside IFC4X3.
Fields
schema: SchemaVersionThe release the model declares.
AuthoringNotInSchema
A value for an attribute the release does not declare. It is refused rather than dropped.
Fields
schema: SchemaVersionThe release the model declares.
AuthoringValueType
A value the release’s declaration of the attribute cannot hold, such as an IFC4 enumeration token IFC2X3 does not declare.
Fields
schema: SchemaVersionThe release the model declares.
AuthoringRequired
The release requires an attribute the call leaves unset, such as
the IFC2X3 IfcRoot.OwnerHistory (#202). It is refused rather than
written as $; the *_with_owner_history writers take the
IfcOwnerHistory IFC2X3 needs.
Fields
schema: SchemaVersionThe release the model declares.
MissingReference
A reference names an entity neither in the model nor staged.
Fields
WrongReferenceType
A reference names an entity of a type the release does not accept
there, such as an OwnerHistory that is not an IfcOwnerHistory.
Trait Implementations§
Source§impl Clone for SpatialAuthoringError
impl Clone for SpatialAuthoringError
Source§impl Debug for SpatialAuthoringError
impl Debug for SpatialAuthoringError
Source§impl Display for SpatialAuthoringError
impl Display for SpatialAuthoringError
impl Eq for SpatialAuthoringError
Source§impl Error for SpatialAuthoringError
impl Error for SpatialAuthoringError
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()