#[non_exhaustive]pub enum SystemAuthoringError {
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 systems 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
IfcSpatialZone in IFC2X3 or IfcBuiltSystem outside IFC4X3.
Fields
schema: SchemaVersionThe release the model declares.
AuthoringNotInSchema
A value for an attribute the release does not declare, such as an
IFC2X3 IfcZone.LongName. 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 IfcDistributionSystemEnum token IFC4 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 $.
Fields
schema: SchemaVersionThe release the model declares.
MissingReference
A reference, such as a caller-supplied OwnerHistory, is neither in
the model nor staged on the transaction.
Fields
WrongReferenceType
A reference, such as a caller-supplied OwnerHistory, names an
entity of a type the release does not accept there.
Trait Implementations§
Source§impl Clone for SystemAuthoringError
impl Clone for SystemAuthoringError
Source§impl Debug for SystemAuthoringError
impl Debug for SystemAuthoringError
Source§impl Display for SystemAuthoringError
impl Display for SystemAuthoringError
impl Eq for SystemAuthoringError
Source§impl Error for SystemAuthoringError
impl Error for SystemAuthoringError
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()