pub enum Error {
Show 23 variants
Workspace(String),
Parse(String),
BookmarkNotFound(String),
NoStack(String),
NoSupportedRemotes,
RemoteNotFound(String),
Auth(String),
GitHubApi(String),
GitLabApi(String),
MergeCommitDetected(String),
Revset(String),
Git(String),
Config(String),
Io(Error),
Http(Error),
Json(Error),
UrlParse(ParseError),
Octocrab(Error),
Platform(String),
Internal(String),
SchedulerCycle {
message: String,
cycle_nodes: Vec<String>,
},
InvalidArgument(String),
Tracking(String),
}Expand description
Main error type for jj-ryu operations
Variants§
Workspace(String)
Failed to load or interact with jj workspace
Parse(String)
Failed to parse jj output or data
BookmarkNotFound(String)
Bookmark not found in repository
NoStack(String)
No stack found (working copy at trunk or no bookmarks)
NoSupportedRemotes
No supported remotes (GitHub/GitLab) found
RemoteNotFound(String)
Specified remote not found
Auth(String)
Authentication failed
GitHubApi(String)
GitHub API error
GitLabApi(String)
GitLab API error
MergeCommitDetected(String)
Merge commit detected (cannot stack)
Revset(String)
Revset evaluation failed
Git(String)
Git operation failed
Config(String)
Invalid configuration
Io(Error)
IO error
Http(Error)
HTTP request error
Json(Error)
JSON serialization/deserialization error
UrlParse(ParseError)
URL parsing error
Octocrab(Error)
Octocrab (GitHub) error
Platform(String)
Platform API error (generic)
Internal(String)
Internal error (unexpected state)
SchedulerCycle
Scheduler detected a cycle in execution dependencies (indicates a bug)
Fields
InvalidArgument(String)
Invalid command-line argument
Tracking(String)
Tracking state 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
Source§impl From<ParseError> for Error
impl From<ParseError> for Error
Source§fn from(source: ParseError) -> Self
fn from(source: ParseError) -> Self
Auto Trait Implementations§
impl !Freeze for Error
impl !RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl !UnwindSafe for Error
Blanket Implementations§
Source§impl<T> AsErrorSource for Twhere
T: Error + 'static,
impl<T> AsErrorSource for Twhere
T: Error + 'static,
Source§fn as_error_source(&self) -> &(dyn Error + 'static)
fn as_error_source(&self) -> &(dyn Error + 'static)
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.