taskchampion_sync_server_core/error.rs
1/// An error from the [`crate::Server`] type.
2///
3/// This type represents only circumstances outside the realm of the protocol, and not the specific
4/// results descriebd in the protocol documentation.
5#[derive(Debug, thiserror::Error)]
6pub enum ServerError {
7 /// There is no client with the given ClientId.
8 #[error("No such client")]
9 NoSuchClient,
10
11 #[error(transparent)]
12 Other(#[from] anyhow::Error),
13}