pub enum GraphRAGError {
Show 31 variants
Config {
message: String,
},
NotInitialized,
NoDocuments,
Io(Error),
Http(Box<Error>),
Json(Error),
SerdeJson(Error),
TextProcessing {
message: String,
},
GraphConstruction {
message: String,
},
VectorSearch {
message: String,
},
EntityExtraction {
message: String,
},
Retrieval {
message: String,
},
Generation {
message: String,
},
FunctionCall {
message: String,
},
Storage {
message: String,
},
Embedding {
message: String,
},
LanguageModel {
message: String,
},
Parallel {
message: String,
},
Serialization {
message: String,
},
Validation {
message: String,
},
Network {
message: String,
},
Auth {
message: String,
},
NotFound {
resource: String,
id: String,
},
AlreadyExists {
resource: String,
id: String,
},
Timeout {
operation: String,
duration: Duration,
},
ResourceLimit {
resource: String,
limit: usize,
},
DataCorruption {
message: String,
},
Unsupported {
operation: String,
reason: String,
},
RateLimit {
message: String,
},
ConflictResolution {
message: String,
},
IncrementalUpdate {
message: String,
},
}Expand description
Main error type for the GraphRAG system
Variants§
Config
Configuration-related errors
NotInitialized
System not initialized error with helpful guidance
NoDocuments
No documents added error with helpful guidance
Io(Error)
I/O errors from file operations
Http(Box<Error>)
HTTP request errors
Json(Error)
JSON parsing/serialization errors
SerdeJson(Error)
Serde JSON errors
TextProcessing
Text processing errors
GraphConstruction
Graph construction and manipulation errors
VectorSearch
Vector search and embedding errors
EntityExtraction
Entity extraction errors
Retrieval
Retrieval system errors
Generation
Answer generation errors
FunctionCall
Function calling errors
Storage
Storage backend errors
Embedding
Embedding model errors
LanguageModel
Language model errors
Parallel
Parallel processing errors
Serialization
Serialization errors
Validation
Validation errors
Network
Network connectivity errors
Auth
Authentication/authorization errors
NotFound
Resource not found errors
AlreadyExists
Already exists errors
Timeout
Operation timeout errors
ResourceLimit
Capacity/resource limit errors
DataCorruption
Data corruption or integrity errors
Unsupported
Unsupported operation errors
RateLimit
Rate limiting errors
ConflictResolution
Conflict resolution errors
IncrementalUpdate
Incremental update errors
Implementations§
Source§impl GraphRAGError
impl GraphRAGError
Sourcepub fn severity(&self) -> ErrorSeverity
pub fn severity(&self) -> ErrorSeverity
Get the severity level of this error
Sourcepub fn is_recoverable(&self) -> bool
pub fn is_recoverable(&self) -> bool
Check if this error is recoverable
Source§impl GraphRAGError
impl GraphRAGError
Sourcepub fn conflict_resolution(message: String) -> Self
pub fn conflict_resolution(message: String) -> Self
Creates a conflict resolution error
Sourcepub fn incremental_update(message: String) -> Self
pub fn incremental_update(message: String) -> Self
Creates an incremental update error
Trait Implementations§
Source§impl Debug for GraphRAGError
impl Debug for GraphRAGError
Source§impl Display for GraphRAGError
impl Display for GraphRAGError
Source§impl Error for GraphRAGError
impl Error for GraphRAGError
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<Error> for GraphRAGError
impl From<Error> for GraphRAGError
Source§impl From<Error> for GraphRAGError
Available on crate feature ureq only.
impl From<Error> for GraphRAGError
ureq only.Source§impl From<Error> for GraphRAGError
impl From<Error> for GraphRAGError
Source§impl From<Error> for GraphRAGError
impl From<Error> for GraphRAGError
Auto Trait Implementations§
impl Freeze for GraphRAGError
impl !RefUnwindSafe for GraphRAGError
impl Send for GraphRAGError
impl Sync for GraphRAGError
impl Unpin for GraphRAGError
impl UnsafeUnpin for GraphRAGError
impl !UnwindSafe for GraphRAGError
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
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>
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