pub enum EntityError {
IndexNotFound(usize),
HandleNotFound(usize),
ClassIdNotFound(i32),
ClassNameNotFound(String),
PropertyNameNotFound(String, String, String),
FieldPathNotFound(SerializerError),
}Expand description
Errors related to entity operations.
Variants§
IndexNotFound(usize)
No entity exists at the specified index
HandleNotFound(usize)
No entity exists with the specified handle
ClassIdNotFound(i32)
No entity exists with the specified class ID
ClassNameNotFound(String)
No entity exists with the specified class name
PropertyNameNotFound(String, String, String)
Property not found on the entity
FieldPathNotFound(SerializerError)
Field path not found in serializer
Trait Implementations§
Source§impl Debug for EntityError
impl Debug for EntityError
Source§impl Display for EntityError
impl Display for EntityError
Source§impl Error for EntityError
impl Error for EntityError
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<EntityError> for ParserError
impl From<EntityError> for ParserError
Source§fn from(source: EntityError) -> Self
fn from(source: EntityError) -> Self
Converts to this type from the input type.
Source§impl From<SerializerError> for EntityError
impl From<SerializerError> for EntityError
Source§fn from(source: SerializerError) -> Self
fn from(source: SerializerError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for EntityError
impl RefUnwindSafe for EntityError
impl Send for EntityError
impl Sync for EntityError
impl Unpin for EntityError
impl UnsafeUnpin for EntityError
impl UnwindSafe for EntityError
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