pub enum PawError {
NotAGitRepo,
TmuxNotInstalled,
NoCLIsFound,
WorktreeError(String),
SessionError(String),
ConfigError(String),
BranchError(String),
UserCancelled,
TmuxError(String),
CliNotFound(String),
}Expand description
Central error type for git-paw operations.
Variants§
NotAGitRepo
Not inside a git repository.
TmuxNotInstalled
tmux is not installed.
NoCLIsFound
No AI CLIs found on PATH or in config.
WorktreeError(String)
Git worktree operation failed.
SessionError(String)
Session state read/write failed.
ConfigError(String)
Config file parsing failed.
BranchError(String)
Branch operation failed.
UserCancelled
User cancelled via Ctrl+C or empty selection.
TmuxError(String)
tmux operation failed.
CliNotFound(String)
Custom CLI not found in config.
Implementations§
Trait Implementations§
Source§impl Error for PawError
impl Error for PawError
1.30.0 · 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()
Auto Trait Implementations§
impl Freeze for PawError
impl RefUnwindSafe for PawError
impl Send for PawError
impl Sync for PawError
impl Unpin for PawError
impl UnsafeUnpin for PawError
impl UnwindSafe for PawError
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