#[non_exhaustive]pub enum DocError {
Show 18 variants
InvalidTypeId(String),
DuplicateId(String),
UnknownEntity(EntityId),
UnknownConstraint(ConstraintId),
UnknownLayer(LayerId),
UnknownGroup(GroupId),
BrokenReference {
from: String,
target: String,
},
MissingAnchor {
entity: EntityId,
anchor: String,
},
MissingParam {
entity: EntityId,
param: String,
},
GroupCycle(GroupId),
MultipleParents(String),
BadOrder(String),
InvalidGeometry {
entity: EntityId,
reason: String,
},
InvalidValue(String),
LimitExceeded(String),
FutureSchema {
found: u32,
supported: u32,
},
UnsupportedSchema(u32),
Malformed(String),
}Expand description
Document-level errors (invariant violations, invalid edits, limits).
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
InvalidTypeId(String)
Malformed type identifier.
DuplicateId(String)
The same ID appears twice.
UnknownEntity(EntityId)
An entity does not exist.
UnknownConstraint(ConstraintId)
A constraint does not exist.
UnknownLayer(LayerId)
A layer does not exist.
UnknownGroup(GroupId)
A group does not exist.
BrokenReference
A reference points to a missing target.
MissingAnchor
An anchor name is not provided by the referenced entity.
MissingParam
A parameter name is not provided by the referenced entity.
GroupCycle(GroupId)
Group nesting forms a cycle.
MultipleParents(String)
An entity or group belongs to more than one group.
BadOrder(String)
The entity order list is not a permutation of the entities.
InvalidGeometry
Geometry is invalid.
InvalidValue(String)
A value is invalid.
LimitExceeded(String)
A configured limit was exceeded.
FutureSchema
The document schema is newer than this library supports.
UnsupportedSchema(u32)
The document schema is older than any supported migration.
Malformed(String)
JSON (de)serialization error.
Trait Implementations§
Source§impl Error for DocError
impl Error for DocError
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()