move contents of taskchampion repo to tc/
This commit is contained in:
15
rust/taskchampion/src/errors.rs
Normal file
15
rust/taskchampion/src/errors.rs
Normal file
@@ -0,0 +1,15 @@
|
||||
use thiserror::Error;
|
||||
|
||||
#[derive(Debug, Error, Eq, PartialEq, Clone)]
|
||||
#[non_exhaustive]
|
||||
/// Errors returned from taskchampion operations
|
||||
pub enum Error {
|
||||
/// A task-database-related error
|
||||
#[error("Task Database Error: {0}")]
|
||||
Database(String),
|
||||
/// An error specifically indicating that the local replica cannot
|
||||
/// be synchronized with the sever, due to being out of date or some
|
||||
/// other irrecoverable error.
|
||||
#[error("Local replica is out of sync with the server")]
|
||||
OutOfSync,
|
||||
}
|
||||
Reference in New Issue
Block a user