forked from github-mirrorer/taskchampion-sync-server
Reorganize the core API (#60)
This commit is contained in:
committed by
GitHub
parent
2b1ad12a79
commit
5ad3b8e8bf
13
core/src/error.rs
Normal file
13
core/src/error.rs
Normal file
@ -0,0 +1,13 @@
|
||||
/// An error from the [`crate::Server`] type.
|
||||
///
|
||||
/// This type represents only circumstances outside the realm of the protocol, and not the specific
|
||||
/// results descriebd in the protocol documentation.
|
||||
#[derive(Debug, thiserror::Error)]
|
||||
pub enum ServerError {
|
||||
/// There is no client with the given ClientId.
|
||||
#[error("No such client")]
|
||||
NoSuchClient,
|
||||
|
||||
#[error(transparent)]
|
||||
Other(#[from] anyhow::Error),
|
||||
}
|
||||
Reference in New Issue
Block a user