Skip to main content

sandbox_quant/error/
sync_error.rs

1use thiserror::Error;
2
3use crate::error::exchange_error::ExchangeError;
4
5#[derive(Debug, Error, Clone, PartialEq)]
6pub enum SyncError {
7    #[error("stream stale")]
8    StreamStale,
9    #[error("snapshot fetch failed")]
10    SnapshotFetchFailed(#[from] ExchangeError),
11}