pub enum PropertyError {
UnknownNode(PropertyId),
MissingParent(PropertyId),
DuplicateId(PropertyId),
CategoryHasNoValue(PropertyId),
IncompatibleEditor {
editor: PropertyEditor,
value: &'static str,
},
InvalidValue {
kind: &'static str,
reason: &'static str,
},
ReadOnly(PropertyId),
Disabled(PropertyId),
Hidden(PropertyId),
StaleChange(ChangeToken),
InvalidIndex {
index: usize,
len: usize,
},
InconsistentStructure(&'static str),
}Expand description
Errors returned by the property model.
Variants§
UnknownNode(PropertyId)
The referenced node does not exist.
MissingParent(PropertyId)
A parent id was given that does not exist in the model.
DuplicateId(PropertyId)
The same id appears more than once (only possible through a crafted deserialized document; the API mints unique ids).
CategoryHasNoValue(PropertyId)
A category was given a value (categories are group rows).
IncompatibleEditor
The value and editor cannot be paired.
Fields
§
editor: PropertyEditorThe editor family requested.
InvalidValue
The value violates its own invariants.
Fields
ReadOnly(PropertyId)
A read-only node rejected a value change.
Disabled(PropertyId)
A disabled node rejected a user edit.
Hidden(PropertyId)
A hidden node rejected an edit, selection, or reveal attempt.
StaleChange(ChangeToken)
The change token is unknown, already decided, or stale.
InvalidIndex
An insertion index is past the end of the sibling list.
InconsistentStructure(&'static str)
The arena, parent links, and child lists do not agree.
Trait Implementations§
Source§impl Clone for PropertyError
impl Clone for PropertyError
Source§impl Debug for PropertyError
impl Debug for PropertyError
Source§impl Display for PropertyError
impl Display for PropertyError
impl Eq for PropertyError
Source§impl Error for PropertyError
impl Error for PropertyError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl From<PropertyError> for GuiError
impl From<PropertyError> for GuiError
Source§fn from(error: PropertyError) -> Self
fn from(error: PropertyError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for PropertyError
impl PartialEq for PropertyError
impl StructuralPartialEq for PropertyError
Auto Trait Implementations§
impl Forget for PropertyError
impl Freeze for PropertyError
impl Move for PropertyError
impl RefUnwindSafe for PropertyError
impl Send for PropertyError
impl Sync for PropertyError
impl Unpin for PropertyError
impl UnsafeUnpin for PropertyErrorwhere
&'static str: UnsafeUnpin,
impl UnwindSafe for PropertyErrorwhere
&'static str: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more