pub enum Error {
Show 19 variants
NotInitialized,
TaskNotFound(String),
AmbiguousPrefix {
prefix: String,
matches: String,
},
NotAnEpic(String),
ParentNotEpic(String),
CycleDetected {
from: String,
to: String,
},
UnknownDependency {
ids: Vec<String>,
},
InvalidConfig {
reason: String,
},
InvalidUsage(String),
InvalidFrontmatter {
path: PathBuf,
reason: String,
},
EditorFailed {
reason: String,
},
NotArchivable {
id: String,
blockers: Vec<String>,
},
InvalidStatus {
id: String,
action: &'static str,
expected: Status,
actual: Status,
},
AlreadyClaimed {
id: String,
assignee: String,
},
FenceViolation {
id: String,
expected: String,
actual: String,
},
NotArchived(String),
Io(Error),
Yaml(Error),
Json(Error),
}Variants§
NotInitialized
TaskNotFound(String)
AmbiguousPrefix
NotAnEpic(String)
ParentNotEpic(String)
CycleDetected
UnknownDependency
InvalidConfig
InvalidUsage(String)
InvalidFrontmatter
EditorFailed
NotArchivable
The task cannot be archived because active tasks depend on it.
InvalidStatus
A workflow shortcut was used on a task whose status does not allow it.
The workflow verbs (release, review, reject, propose, accept)
each move a task along one specific edge; setting a status directly is
always available as the escape hatch.
AlreadyClaimed
A claim was refused because the task already belongs to someone else.
Returned by the claiming primitives (claim_task, assign_task) after
a fresh read from disk, so two workers racing for the same task cannot
both walk away believing they hold it.
FenceViolation
A fenced mutation was refused because the task’s assignee no longer matches the token the caller claimed it with.
This is the stale-writer guard: a worker whose task has been released, reassigned, or reaped gets this error instead of silently clobbering the new holder’s state.
NotArchived(String)
The task is not found in the archive.
Io(Error)
Yaml(Error)
Json(Error)
Trait Implementations§
Source§impl Error for Error
impl Error for Error
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()