archivist_lib/logs/
error.rsuse super::listener::ListenerError;
use crate::events::error::EventError;
use thiserror::Error;
#[derive(Debug, Error)]
pub enum LogsError {
#[error("couldn't connect to {protocol}: {source}")]
ConnectingToService { protocol: &'static str, source: anyhow::Error },
#[error("couldn't retrieve the ReadOnlyLog debuglog handle: {source}")]
RetrievingDebugLog { source: fidl::Error },
#[error("malformed event: `{source}`")]
MalformedEvent {
#[from]
source: EventError,
},
#[error("error while handling {protocol} requests: {source}")]
HandlingRequests { protocol: &'static str, source: fidl::Error },
#[error("error from a listener: {source}")]
Listener {
#[from]
source: ListenerError,
},
}