pub enum CodeDigestError {
Show 21 variants
InvalidPath(String),
ReadError(String),
WriteError(String),
InvalidConfiguration(String),
ConfigParseError(String),
ConfigError(String),
TokenCountError(String),
MarkdownGenerationError(String),
PrioritizationError(String),
LlmToolNotFound {
tool: String,
install_instructions: String,
},
SubprocessError(String),
FileTooLarge(String, usize),
TokenLimitExceeded {
current: usize,
max: usize,
},
InvalidGlobPattern(String),
RemoteFetchError(String),
ClipboardError(String),
FileProcessingError {
path: String,
error: String,
},
TokenCountingError {
path: String,
error: String,
},
ParallelProcessingErrors {
error_count: usize,
},
IoError(Error),
Utf8Error(FromUtf8Error),
}
Expand description
Main error type for code-digest operations
Variants§
InvalidPath(String)
File system related errors
ReadError(String)
WriteError(String)
InvalidConfiguration(String)
Configuration errors
ConfigParseError(String)
ConfigError(String)
TokenCountError(String)
Processing errors
MarkdownGenerationError(String)
PrioritizationError(String)
LlmToolNotFound
External tool errors
SubprocessError(String)
FileTooLarge(String, usize)
Resource limits
TokenLimitExceeded
InvalidGlobPattern(String)
Pattern matching errors
RemoteFetchError(String)
Remote repository errors
ClipboardError(String)
Clipboard errors
FileProcessingError
Parallel processing errors
TokenCountingError
ParallelProcessingErrors
IoError(Error)
General I/O errors
Utf8Error(FromUtf8Error)
UTF-8 conversion errors
Trait Implementations§
Source§impl Debug for CodeDigestError
impl Debug for CodeDigestError
Source§impl Display for CodeDigestError
impl Display for CodeDigestError
Source§impl Error for CodeDigestError
impl Error for CodeDigestError
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()
Source§impl From<Error> for CodeDigestError
impl From<Error> for CodeDigestError
Source§impl From<FromUtf8Error> for CodeDigestError
impl From<FromUtf8Error> for CodeDigestError
Source§fn from(source: FromUtf8Error) -> Self
fn from(source: FromUtf8Error) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for CodeDigestError
impl !RefUnwindSafe for CodeDigestError
impl Send for CodeDigestError
impl Sync for CodeDigestError
impl Unpin for CodeDigestError
impl !UnwindSafe for CodeDigestError
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
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>
Converts
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>
Converts
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