#[non_exhaustive]pub enum CostAuthoringError {
InvalidValue {
entity: &'static str,
attribute: &'static str,
reason: String,
},
MissingReference {
entity: &'static str,
attribute: &'static str,
target: EntityId,
},
WrongReferenceType {
entity: &'static str,
attribute: &'static str,
target: EntityId,
actual: String,
expected: &'static str,
},
MultipleParents {
child: EntityId,
existing_parent: EntityId,
},
NestingCycle {
item: EntityId,
},
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,
},
}Expand description
Why a bounded IFC4 cost draft was refused before staging.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
InvalidValue
A scalar, enum-dependent field, aggregate, or identifier was invalid.
Fields
MissingReference
A draft referenced an entity absent from the projected transaction state.
Fields
WrongReferenceType
A referenced entity had the wrong exact type for this bounded contract.
Fields
MultipleParents
A cost item was already nested under another parent.
Fields
NestingCycle
A proposed cost-item edge would create a self-reference or cycle.
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
IfcQuantityNumber (IFC4X3 only) in an IFC2X3 or IFC4 model.
Fields
schema: SchemaVersionThe release the model declares.
AuthoringNotInSchema
A draft supplied a value for an attribute the model’s release does
not declare, such as a Formula for an IFC2X3 quantity. It is
refused rather than dropped.
Fields
schema: SchemaVersionThe release the model declares.
AuthoringValueType
A draft supplied a value the release’s declaration cannot hold, such
as a date string where IFC2X3 declares an IfcDateTimeSelect record
(IfcCostSchedule.SubmittedOn), or a token its enumeration lacks.
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.
Trait Implementations§
Source§impl Clone for CostAuthoringError
impl Clone for CostAuthoringError
Source§fn clone(&self) -> CostAuthoringError
fn clone(&self) -> CostAuthoringError
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 CostAuthoringError
impl Debug for CostAuthoringError
Source§impl Display for CostAuthoringError
impl Display for CostAuthoringError
impl Eq for CostAuthoringError
Source§impl Error for CostAuthoringError
impl Error for CostAuthoringError
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()