1use std::io::Error as IoError;
2use thiserror::Error;
3
4#[derive(Debug, Error)]
5pub enum FirehoseError {
6 #[error("{0}")]
7 Cbor(#[from] ciborium::de::Error<IoError>),
8 #[error("{0}")]
9 IpldCbor(#[from] serde_ipld_dagcbor::error::DecodeError<IoError>),
10 #[error("{0}")]
11 Websocket(#[from] tokio_tungstenite::tungstenite::error::Error),
12}