blob: 02376f096452e70c5fba2d085d8a5c8e52c23cf1 [file] [log] [blame]
// Copyright 2020 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
use 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,
},
}