pub(crate) enum CliError {
Show 19 variants
IndexWork(IndexWorkFailure),
Db(DbError),
Service(ServiceError),
Fs(FsError),
Io {
path: PathBuf,
source: Error,
},
Output(Error),
Json(Error),
Mcp(String),
Watcher(String),
AtlasMap(AtlasMapError),
ParserPack(OptionalParserPackLifecycleError),
OptionalParserOperationAndCleanup {
operation: Box<Self>,
cleanup: Box<Self>,
},
InvalidInput(String),
InitRequired(Box<IndexInitRequired>),
WorktreeRequired(Box<ProjectWorktreeRequired>),
RefreshRequired(Box<IndexRefreshRequired>),
VerificationIncomplete(Box<IndexVerificationIncomplete>),
ProjectMismatch(Box<IndexProjectMismatch>),
RootTransitionFollowup {
root: String,
transition: RootTransition,
source: Box<CliError>,
},
}Expand description
Error type for CLI boundary failures.
Variants§
IndexWork(IndexWorkFailure)
Cooperative index work was canceled or exceeded a declared bound.
Db(DbError)
Database operation failed.
Service(ServiceError)
Shared service operation failed.
Fs(FsError)
Filesystem scanner operation failed.
Io
File or directory operation failed.
Output(Error)
Output stream write failed.
Json(Error)
JSON serialization failed.
Mcp(String)
MCP runtime failed.
Watcher(String)
Watcher runtime failed.
AtlasMap(AtlasMapError)
Atlas map operation failed.
ParserPack(OptionalParserPackLifecycleError)
Optional parser-pack lifecycle operation failed.
OptionalParserOperationAndCleanup
Optional parsing failed and the requested process cleanup also failed.
Fields
InvalidInput(String)
User input was invalid.
InitRequired(Box<IndexInitRequired>)
The selected source root has not been initialized.
WorktreeRequired(Box<ProjectWorktreeRequired>)
A bare/common Git directory was selected instead of checked-out source.
RefreshRequired(Box<IndexRefreshRequired>)
Current local source differs from the durable index.
VerificationIncomplete(Box<IndexVerificationIncomplete>)
Current local source could not be verified completely.
ProjectMismatch(Box<IndexProjectMismatch>)
The selected project root does not own the opened index.
RootTransitionFollowup
A durable root transition committed before generated configuration failed.
Trait Implementations§
Source§impl Error for CliError
impl Error for CliError
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<AtlasMapError> for CliError
impl From<AtlasMapError> for CliError
Source§fn from(source: AtlasMapError) -> Self
fn from(source: AtlasMapError) -> Self
Source§impl From<GraphContractError> for CliError
impl From<GraphContractError> for CliError
Source§fn from(error: GraphContractError) -> Self
fn from(error: GraphContractError) -> Self
Source§impl From<IndexWorkFailure> for CliError
impl From<IndexWorkFailure> for CliError
Source§fn from(source: IndexWorkFailure) -> Self
fn from(source: IndexWorkFailure) -> Self
Source§impl From<OptionalParserPackLifecycleError> for CliError
impl From<OptionalParserPackLifecycleError> for CliError
Source§fn from(source: OptionalParserPackLifecycleError) -> Self
fn from(source: OptionalParserPackLifecycleError) -> Self
Source§impl From<ServiceError> for CliError
impl From<ServiceError> for CliError
Source§fn from(source: ServiceError) -> Self
fn from(source: ServiceError) -> Self
Auto Trait Implementations§
impl Freeze for CliError
impl !RefUnwindSafe for CliError
impl Send for CliError
impl Sync for CliError
impl Unpin for CliError
impl !UnwindSafe for CliError
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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 more§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> ToCompactString for Twhere
T: Display,
impl<T> ToCompactString for Twhere
T: Display,
§fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
ToCompactString::to_compact_string()] Read more§fn to_compact_string(&self) -> CompactString
fn to_compact_string(&self) -> CompactString
CompactString]. Read more