#[non_exhaustive]pub enum ClassificationError {
WrongEntityType {
expected: &'static str,
actual: String,
},
MissingAttribute {
entity: &'static str,
id: EntityId,
attribute: &'static str,
},
InvalidValue {
entity: &'static str,
id: EntityId,
attribute: &'static str,
value: String,
},
UnknownEntity {
id: EntityId,
},
DanglingReference {
entity: &'static str,
id: EntityId,
attribute: &'static str,
target: EntityId,
},
ReferenceType {
entity: &'static str,
id: EntityId,
attribute: &'static str,
target: EntityId,
expected: &'static str,
actual: String,
},
Cycle {
path: Vec<EntityId>,
},
BudgetExceeded {
max_depth: usize,
max_nodes: usize,
},
AmbiguousType {
object: EntityId,
count: usize,
},
AuthoringInvalid {
entity: &'static str,
attribute: &'static str,
value: String,
},
AuthoringReferenceType {
target: EntityId,
expected: &'static str,
actual: String,
},
}Expand description
Failure decoding, cross-checking, or authoring classification/document/library records.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
WrongEntityType
Entity did not have the expected IFC type.
Fields
MissingAttribute
A required attribute was unset ($ or *) or absent.
Fields
InvalidValue
An attribute was present but failed to decode as its expected shape.
Fields
UnknownEntity
A referenced entity id does not exist in the model.
DanglingReference
An attribute reference points at an id that is not present in the model.
Fields
ReferenceType
An attribute reference resolves but the target entity has the wrong type for its select.
Fields
Cycle
Following ReferencedSource links revisited an already-seen entity.
BudgetExceeded
Hierarchy traversal exceeded the caller-supplied node or depth budget.
Fields
AmbiguousType
An occurrence object is related to more than one IfcRelDefinesByType type.
Fields
AuthoringInvalid
A draft value failed schema validation before staging.
Fields
AuthoringReferenceType
A draft reference resolves to a staged or committed entity of the wrong type.
Trait Implementations§
Source§impl Clone for ClassificationError
impl Clone for ClassificationError
Source§impl Debug for ClassificationError
impl Debug for ClassificationError
Source§impl Display for ClassificationError
impl Display for ClassificationError
Source§impl Error for ClassificationError
impl Error for ClassificationError
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()