pub enum PgLogstatsError {
Io(Error),
Parse {
message: String,
line_number: Option<usize>,
line_content: Option<String>,
},
TimestampParse {
message: String,
timestamp_string: String,
},
Configuration {
message: String,
field: Option<String>,
},
Analytics {
message: String,
operation: String,
},
Serialization(Error),
Unexpected {
message: String,
context: Option<String>,
},
}Expand description
Main error type for pg-logstats operations
Variants§
Io(Error)
I/O errors when reading files or writing output
Parse
Errors parsing log files or individual log lines
TimestampParse
Errors parsing timestamps in log entries
Configuration
Configuration errors from CLI arguments or settings
Analytics
Errors during analytics computation
Serialization(Error)
Errors serializing/deserializing data
Unexpected
Generic error for unexpected conditions
Trait Implementations§
Source§impl Debug for PgLogstatsError
impl Debug for PgLogstatsError
Source§impl Display for PgLogstatsError
impl Display for PgLogstatsError
Source§impl Error for PgLogstatsError
impl Error for PgLogstatsError
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 PgLogstatsError
impl From<Error> for PgLogstatsError
Auto Trait Implementations§
impl Freeze for PgLogstatsError
impl !RefUnwindSafe for PgLogstatsError
impl Send for PgLogstatsError
impl Sync for PgLogstatsError
impl Unpin for PgLogstatsError
impl UnsafeUnpin for PgLogstatsError
impl !UnwindSafe for PgLogstatsError
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