pub enum JJError {
JJNotFound,
CommandFailed(String),
ParseError(String),
OperationNotFound(String),
ConflictResolutionFailed(String),
InvalidConfig(String),
IoError(String),
SerializationError(String),
Unknown(String),
MCPError(String),
}Expand description
Error types for Jujutsu operations
Variants§
JJNotFound
jj command not found or not installed
CommandFailed(String)
jj command execution failed
ParseError(String)
Failed to parse jj output
OperationNotFound(String)
Operation not found in log
ConflictResolutionFailed(String)
Conflict resolution failed
InvalidConfig(String)
Invalid configuration
IoError(String)
I/O error
SerializationError(String)
Serialization error
Unknown(String)
Unknown error
MCPError(String)
MCP protocol error
Implementations§
Trait Implementations§
Source§impl Error for JJError
impl Error for JJError
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()
impl StructuralPartialEq for JJError
Auto Trait Implementations§
impl Freeze for JJError
impl RefUnwindSafe for JJError
impl Send for JJError
impl Sync for JJError
impl Unpin for JJError
impl UnwindSafe for JJError
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