#[non_exhaustive]pub enum SchemaResolutionError {
MissingSchema,
MultipleSchemas {
schemas: usize,
},
UnsupportedSchema {
schema: String,
},
}Expand description
Why a model’s declared schema release could not be resolved.
Every read path in this crate binds to the IFC release the file’s
FILE_SCHEMA header declares (see crate::schema_of) rather than
assuming IFC4. A file that does not name a release this crate has
verified semantics for is refused, not silently read under the wrong
table: guessing IFC4 for an IFC2X3 file mis-classifies IfcZone as a
system and mis-reads IfcElectricalCircuit as not one (issue #52).
#[non_exhaustive]: new refusal reasons (e.g. a newly-verified release
gaining support) must be addable without breaking callers matching on
this type.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
MissingSchema
FILE_SCHEMA names no schema at all.
MultipleSchemas
FILE_SCHEMA names more than one schema; this crate reads only
single-schema files.
UnsupportedSchema
FILE_SCHEMA names a release this crate’s readers are not verified
for, or one this build does not bundle.
Every reader resolves IFC2X3, IFC4 and IFC4X3 (see
crate::schema_of). IFC4X1 and IFC4X2 are bundled in ifc-schema
but unverified here, so they are refused rather than read with another
release’s semantics.
Trait Implementations§
Source§impl Clone for SchemaResolutionError
impl Clone for SchemaResolutionError
Source§fn clone(&self) -> SchemaResolutionError
fn clone(&self) -> SchemaResolutionError
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 SchemaResolutionError
impl Debug for SchemaResolutionError
Source§impl Display for SchemaResolutionError
impl Display for SchemaResolutionError
impl Eq for SchemaResolutionError
Source§impl Error for SchemaResolutionError
impl Error for SchemaResolutionError
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()