Enum jj_cli::cli_util::CommandError
source · pub enum CommandError {
UserError {
message: String,
hint: Option<String>,
},
ConfigError(String),
CliError(String),
ClapCliError(Arc<Error>),
BrokenPipe,
InternalError(String),
}Variants§
UserError
ConfigError(String)
CliError(String)
Invalid command line
ClapCliError(Arc<Error>)
Invalid command line detected by clap
BrokenPipe
InternalError(String)
Trait Implementations§
source§impl Clone for CommandError
impl Clone for CommandError
source§fn clone(&self) -> CommandError
fn clone(&self) -> CommandError
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for CommandError
impl Debug for CommandError
source§impl From<BackendError> for CommandError
impl From<BackendError> for CommandError
source§fn from(err: BackendError) -> Self
fn from(err: BackendError) -> Self
Converts to this type from the input type.
source§impl From<CheckOutCommitError> for CommandError
impl From<CheckOutCommitError> for CommandError
source§fn from(err: CheckOutCommitError) -> Self
fn from(err: CheckOutCommitError) -> Self
Converts to this type from the input type.
source§impl From<ConfigError> for CommandError
impl From<ConfigError> for CommandError
source§fn from(err: ConfigError) -> Self
fn from(err: ConfigError) -> Self
Converts to this type from the input type.
source§impl From<ConfigError> for CommandError
impl From<ConfigError> for CommandError
source§fn from(err: ConfigError) -> Self
fn from(err: ConfigError) -> Self
Converts to this type from the input type.
source§impl From<ConflictResolveError> for CommandError
impl From<ConflictResolveError> for CommandError
source§fn from(err: ConflictResolveError) -> Self
fn from(err: ConflictResolveError) -> Self
Converts to this type from the input type.
source§impl From<DiffEditError> for CommandError
impl From<DiffEditError> for CommandError
source§fn from(err: DiffEditError) -> Self
fn from(err: DiffEditError) -> Self
Converts to this type from the input type.
source§impl From<DiffGenerateError> for CommandError
impl From<DiffGenerateError> for CommandError
source§fn from(err: DiffGenerateError) -> Self
fn from(err: DiffGenerateError) -> Self
Converts to this type from the input type.
source§impl From<EditCommitError> for CommandError
impl From<EditCommitError> for CommandError
source§fn from(err: EditCommitError) -> Self
fn from(err: EditCommitError) -> Self
Converts to this type from the input type.
source§impl From<Error> for CommandError
impl From<Error> for CommandError
source§impl From<Error> for CommandError
impl From<Error> for CommandError
source§impl From<Error> for CommandError
impl From<Error> for CommandError
source§impl From<FsPathParseError> for CommandError
impl From<FsPathParseError> for CommandError
source§fn from(err: FsPathParseError) -> Self
fn from(err: FsPathParseError) -> Self
Converts to this type from the input type.
source§impl From<GitConfigParseError> for CommandError
impl From<GitConfigParseError> for CommandError
source§fn from(err: GitConfigParseError) -> Self
fn from(err: GitConfigParseError) -> Self
Converts to this type from the input type.
source§impl From<GitExportError> for CommandError
impl From<GitExportError> for CommandError
source§fn from(err: GitExportError) -> Self
fn from(err: GitExportError) -> Self
Converts to this type from the input type.
source§impl From<GitImportError> for CommandError
impl From<GitImportError> for CommandError
source§fn from(err: GitImportError) -> Self
fn from(err: GitImportError) -> Self
Converts to this type from the input type.
source§impl From<GitRemoteManagementError> for CommandError
impl From<GitRemoteManagementError> for CommandError
source§fn from(err: GitRemoteManagementError) -> Self
fn from(err: GitRemoteManagementError) -> Self
Converts to this type from the input type.
source§impl From<OpHeadResolutionError<CommandError>> for CommandError
impl From<OpHeadResolutionError<CommandError>> for CommandError
source§fn from(err: OpHeadResolutionError<CommandError>) -> Self
fn from(err: OpHeadResolutionError<CommandError>) -> Self
Converts to this type from the input type.
source§impl From<OpStoreError> for CommandError
impl From<OpStoreError> for CommandError
source§fn from(err: OpStoreError) -> Self
fn from(err: OpStoreError) -> Self
Converts to this type from the input type.
source§impl From<PatternError> for CommandError
impl From<PatternError> for CommandError
source§fn from(err: PatternError) -> Self
fn from(err: PatternError) -> Self
Converts to this type from the input type.
source§impl From<RepoLoaderError> for CommandError
impl From<RepoLoaderError> for CommandError
source§fn from(err: RepoLoaderError) -> Self
fn from(err: RepoLoaderError) -> Self
Converts to this type from the input type.
source§impl From<ResetError> for CommandError
impl From<ResetError> for CommandError
source§fn from(_: ResetError) -> Self
fn from(_: ResetError) -> Self
Converts to this type from the input type.
source§impl From<RevsetEvaluationError> for CommandError
impl From<RevsetEvaluationError> for CommandError
source§fn from(err: RevsetEvaluationError) -> Self
fn from(err: RevsetEvaluationError) -> Self
Converts to this type from the input type.
source§impl From<RevsetParseError> for CommandError
impl From<RevsetParseError> for CommandError
source§fn from(err: RevsetParseError) -> Self
fn from(err: RevsetParseError) -> Self
Converts to this type from the input type.
source§impl From<RevsetResolutionError> for CommandError
impl From<RevsetResolutionError> for CommandError
source§fn from(err: RevsetResolutionError) -> Self
fn from(err: RevsetResolutionError) -> Self
Converts to this type from the input type.
source§impl From<RewriteRootCommit> for CommandError
impl From<RewriteRootCommit> for CommandError
source§fn from(err: RewriteRootCommit) -> Self
fn from(err: RewriteRootCommit) -> Self
Converts to this type from the input type.
source§impl From<SnapshotError> for CommandError
impl From<SnapshotError> for CommandError
source§fn from(err: SnapshotError) -> Self
fn from(err: SnapshotError) -> Self
Converts to this type from the input type.
source§impl From<TemplateParseError> for CommandError
impl From<TemplateParseError> for CommandError
source§fn from(err: TemplateParseError) -> Self
fn from(err: TemplateParseError) -> Self
Converts to this type from the input type.
source§impl From<TreeMergeError> for CommandError
impl From<TreeMergeError> for CommandError
source§fn from(err: TreeMergeError) -> Self
fn from(err: TreeMergeError) -> Self
Converts to this type from the input type.
source§impl From<TreeStateError> for CommandError
impl From<TreeStateError> for CommandError
source§fn from(err: TreeStateError) -> Self
fn from(err: TreeStateError) -> Self
Converts to this type from the input type.
source§impl From<WorkspaceInitError> for CommandError
impl From<WorkspaceInitError> for CommandError
source§fn from(err: WorkspaceInitError) -> Self
fn from(err: WorkspaceInitError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for CommandError
impl Send for CommandError
impl Sync for CommandError
impl Unpin for CommandError
impl !UnwindSafe for CommandError
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