pub enum KnowledgeError {
UvCommandFailed(String),
PackageNotFound(String),
StubParseError {
file: String,
message: String,
},
DatabaseError(String),
InvalidKind(String),
SymbolNotFound {
module: String,
symbol: String,
},
Io(Error),
Storage(String),
}Expand description
Errors that can occur during type extraction and database operations.
Variants§
UvCommandFailed(String)
Failed to execute uv command
PackageNotFound(String)
Package not found or installation failed
StubParseError
Failed to parse Python stub file
DatabaseError(String)
Failed to read/write Parquet database
InvalidKind(String)
Invalid TypeFactKind string
SymbolNotFound
Query returned no results
Io(Error)
IO error
Storage(String)
Arrow/Parquet error (when parquet-storage feature is enabled)
Trait Implementations§
Source§impl Debug for KnowledgeError
impl Debug for KnowledgeError
Source§impl Display for KnowledgeError
impl Display for KnowledgeError
Source§impl Error for KnowledgeError
impl Error for KnowledgeError
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()
Auto Trait Implementations§
impl Freeze for KnowledgeError
impl !RefUnwindSafe for KnowledgeError
impl Send for KnowledgeError
impl Sync for KnowledgeError
impl Unpin for KnowledgeError
impl !UnwindSafe for KnowledgeError
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> 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>
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