sos_remote_sync/
error.rs

1//! Error type for the wire protocol.
2use thiserror::Error;
3
4/// Errors generated by the wire protocol.
5#[derive(Debug, Error)]
6pub enum Error {
7    /// Error generated by the IO module.
8    #[error(transparent)]
9    Io(#[from] std::io::Error),
10
11    /// Error generated by the core library.
12    #[error(transparent)]
13    Core(#[from] sos_core::Error),
14
15    /// Error generated by the backend library.
16    #[error(transparent)]
17    Backend(#[from] sos_backend::Error),
18
19    /// Error generated by the backendcstorage.
20    #[error(transparent)]
21    BackendStorage(#[from] sos_backend::StorageError),
22
23    /// Error generated by the sync library.
24    #[error(transparent)]
25    Sync(#[from] sos_sync::Error),
26
27    /// Error generated by the account library.
28    #[error(transparent)]
29    Account(#[from] sos_account::Error),
30}