pub enum TrackError {
Show 27 variants
Database(Error),
NoActiveTask,
TaskNotFound(i64),
TaskArchived(i64),
EmptyTaskName,
EmptyTodoContent,
EmptyScrapContent,
UncommittedWorkspaces(Vec<String>),
DuplicateTicket(String, i64),
InvalidTicketFormat(String),
TodoNotFound(i64),
WorktreeNotFound(i64),
InvalidStatus(String),
InvalidStatusTransition {
from: String,
to: String,
},
TodoReopenForbidden {
from: String,
},
TodoCompleteRequiresDoneCommand,
TodoCompletionDbFailed {
todo_index: i64,
bookmark: String,
detail: String,
},
Jj(String),
NotJjRepository(String),
BookmarkExists(String),
InvalidUrl(String),
NoRepositoriesRegistered,
FailedRepoStatusCheck(String),
RepoHasPendingChanges(String),
Io(Error),
Cancelled,
Other(String),
}Expand description
Main error type for the track CLI application.
This enum encompasses all possible errors that can occur during track operations. Each variant provides a descriptive error message and may contain additional context.
Variants§
Database(Error)
Database operation failed
NoActiveTask
TaskNotFound(i64)
TaskArchived(i64)
EmptyTaskName
EmptyTodoContent
EmptyScrapContent
UncommittedWorkspaces(Vec<String>)
DuplicateTicket(String, i64)
InvalidTicketFormat(String)
TodoNotFound(i64)
WorktreeNotFound(i64)
InvalidStatus(String)
InvalidStatusTransition
TodoReopenForbidden
TodoCompleteRequiresDoneCommand
TodoCompletionDbFailed
Jj(String)
NotJjRepository(String)
BookmarkExists(String)
InvalidUrl(String)
NoRepositoriesRegistered
FailedRepoStatusCheck(String)
RepoHasPendingChanges(String)
Io(Error)
Cancelled
Other(String)
Trait Implementations§
Source§impl Debug for TrackError
impl Debug for TrackError
Source§impl Display for TrackError
impl Display for TrackError
Source§impl Error for TrackError
impl Error for TrackError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl From<Error> for TrackError
impl From<Error> for TrackError
Auto Trait Implementations§
impl !RefUnwindSafe for TrackError
impl !UnwindSafe for TrackError
impl Freeze for TrackError
impl Send for TrackError
impl Sync for TrackError
impl Unpin for TrackError
impl UnsafeUnpin for TrackError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more