#[non_exhaustive]pub enum LogdiveError {
QueryParse(QueryParseError),
InvalidDatetime {
input: String,
reason: String,
},
UnsafeFieldName(String),
CorruptFieldsJson(Error),
Sqlite(Error),
Io {
path: PathBuf,
source: Error,
},
IoBare(Error),
Json(Error),
}Expand description
Every error the core crate can produce.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
QueryParse(QueryParseError)
Wrapper around a QueryParseError, preserved as-is so callers
that want the structured position/message can match on it.
InvalidDatetime
The since <datetime> clause contained a string that did not
parse as any accepted datetime format.
UnsafeFieldName(String)
A field name slipped through the parser’s validation. This is a defense-in-depth guard at the SQL-generation boundary and should be unreachable in practice.
CorruptFieldsJson(Error)
A row came back from SQLite with a malformed fields JSON column.
Indicates corruption or an out-of-band write to the database.
Sqlite(Error)
Underlying SQLite error.
Io
I/O error while creating the index directory, opening the database file, or reading a log file for ingestion.
IoBare(Error)
Generic I/O error without an associated path (for stream-style ingestion from stdin, where there isn’t a meaningful path).
Json(Error)
Miscellaneous serde error not covered by a more specific variant.
Implementations§
Source§impl LogdiveError
impl LogdiveError
Trait Implementations§
Source§impl Debug for LogdiveError
impl Debug for LogdiveError
Source§impl Display for LogdiveError
impl Display for LogdiveError
Source§impl Error for LogdiveError
impl Error for LogdiveError
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()