pub enum ContextCreatorError {
Show 24 variants
    InvalidPath(String),
    ReadError(String),
    WriteError(String),
    InvalidConfiguration(String),
    ConfigParseError(String),
    ConfigError(String),
    TokenCountError(String),
    ContextGenerationError(String),
    PrioritizationError(String),
    LlmToolNotFound {
        tool: String,
        install_instructions: String,
    },
    SubprocessError(String),
    FileTooLarge(String, usize),
    TokenLimitExceeded {
        current: usize,
        max: usize,
    },
    ParseError(String),
    InvalidGlobPattern(String),
    MutexPoisoned,
    SecurityError(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 context-creator operations
Variants§
InvalidPath(String)
File system related errors
ReadError(String)
WriteError(String)
InvalidConfiguration(String)
Configuration errors
ConfigParseError(String)
ConfigError(String)
TokenCountError(String)
Processing errors
ContextGenerationError(String)
PrioritizationError(String)
LlmToolNotFound
External tool errors
SubprocessError(String)
FileTooLarge(String, usize)
Resource limits
TokenLimitExceeded
ParseError(String)
Parsing errors
InvalidGlobPattern(String)
Pattern matching errors
MutexPoisoned
Mutex errors
SecurityError(String)
Security 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 ContextCreatorError
 
impl Debug for ContextCreatorError
Source§impl Display for ContextCreatorError
 
impl Display for ContextCreatorError
Source§impl Error for ContextCreatorError
 
impl Error for ContextCreatorError
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 ContextCreatorError
 
impl From<Error> for ContextCreatorError
Source§impl From<FromUtf8Error> for ContextCreatorError
 
impl From<FromUtf8Error> for ContextCreatorError
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 ContextCreatorError
impl !RefUnwindSafe for ContextCreatorError
impl Send for ContextCreatorError
impl Sync for ContextCreatorError
impl Unpin for ContextCreatorError
impl !UnwindSafe for ContextCreatorError
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