pub enum ChronicleError {
EntityNotFound(String),
DuplicateId(String),
DanglingReference {
source_id: String,
target_id: String,
},
TemporalViolation {
description: String,
},
StateViolation {
description: String,
},
Parse(SpannedError),
Io(Error),
}Expand description
Errors that can occur when loading, validating, or querying a Chronicle graph.
Variants§
EntityNotFound(String)
A lookup by entity ID found no matching node in the graph.
DuplicateId(String)
Two or more entities share the same ID, which must be unique.
DanglingReference
An entity references another entity ID that does not exist in the graph.
Fields
TemporalViolation
A temporal constraint (Allen’s Interval Algebra) is violated between events.
StateViolation
An event conflicts with the current state of a participant or location (e.g. a dead actor participating, or a destroyed place hosting an event).
Parse(SpannedError)
A RON file could not be parsed.
Io(Error)
A filesystem I/O operation failed while reading world data.
Trait Implementations§
Source§impl Debug for ChronicleError
impl Debug for ChronicleError
Source§impl Display for ChronicleError
impl Display for ChronicleError
Source§impl Error for ChronicleError
impl Error for ChronicleError
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<Error> for ChronicleError
impl From<Error> for ChronicleError
Source§impl From<SpannedError> for ChronicleError
impl From<SpannedError> for ChronicleError
Source§fn from(source: SpannedError) -> Self
fn from(source: SpannedError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for ChronicleError
impl !UnwindSafe for ChronicleError
impl Freeze for ChronicleError
impl Send for ChronicleError
impl Sync for ChronicleError
impl Unpin for ChronicleError
impl UnsafeUnpin for ChronicleError
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