pub enum Error {
Show 16 variants
InvalidLatitude(f64),
InvalidLongitude(f64),
InvalidCoordinates {
lat: f64,
lon: f64,
},
InvalidTimestamp(String),
MissingField(&'static str),
EventNotFound(String),
NarrativeNotFound(String),
Io(Error),
Json(Error),
Csv(Error),
InvalidFormat(String),
IndexError(String),
GraphError(String),
AnalysisError(String),
ParseError(String),
WithContext {
context: String,
source: Box<Error>,
},
}Expand description
Errors that can occur in spatial-narrative operations.
Variants§
InvalidLatitude(f64)
Invalid latitude value (must be between -90 and 90).
InvalidLongitude(f64)
Invalid longitude value (must be between -180 and 180).
InvalidCoordinates
Invalid coordinate pair.
InvalidTimestamp(String)
Invalid timestamp format.
MissingField(&'static str)
Missing required field in builder.
EventNotFound(String)
Event not found.
NarrativeNotFound(String)
Narrative not found.
Io(Error)
I/O error.
Json(Error)
JSON parsing/serialization error.
Csv(Error)
CSV parsing error.
InvalidFormat(String)
Invalid file format.
IndexError(String)
Index error.
GraphError(String)
Graph error.
AnalysisError(String)
Analysis error.
ParseError(String)
Parse error.
WithContext
Generic error with context.
Implementations§
Trait Implementations§
Source§impl Error for Error
impl Error for Error
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()
Auto Trait Implementations§
impl Freeze for Error
impl !RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl !UnwindSafe for Error
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