pub enum IndexerError {
Io(Error),
Database(Error),
Http(Error),
Json(Error),
Config(ConfigError),
Embedding {
message: String,
},
VectorStore {
message: String,
},
FileProcessing {
message: String,
},
InvalidInput {
message: String,
},
NotFound {
message: String,
},
Mcp {
message: String,
},
EnvironmentSetup {
message: String,
},
}Variants§
Io(Error)
Database(Error)
Http(Error)
Json(Error)
Config(ConfigError)
Embedding
VectorStore
FileProcessing
InvalidInput
NotFound
Mcp
EnvironmentSetup
Implementations§
Source§impl IndexerError
impl IndexerError
pub fn embedding<S: Into<String>>(message: S) -> Self
pub fn vector_store<S: Into<String>>(message: S) -> Self
pub fn file_processing<S: Into<String>>(message: S) -> Self
pub fn invalid_input<S: Into<String>>(message: S) -> Self
pub fn not_found<S: Into<String>>(message: S) -> Self
pub fn mcp<S: Into<String>>(message: S) -> Self
pub fn environment_setup<S: Into<String>>(message: S) -> Self
Trait Implementations§
Source§impl Debug for IndexerError
impl Debug for IndexerError
Source§impl Display for IndexerError
impl Display for IndexerError
Source§impl Error for IndexerError
impl Error for IndexerError
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<ConfigError> for IndexerError
impl From<ConfigError> for IndexerError
Source§fn from(source: ConfigError) -> Self
fn from(source: ConfigError) -> Self
Converts to this type from the input type.
Source§impl From<Error> for IndexerError
impl From<Error> for IndexerError
Source§impl From<Error> for IndexerError
impl From<Error> for IndexerError
Source§impl From<Error> for IndexerError
impl From<Error> for IndexerError
Auto Trait Implementations§
impl Freeze for IndexerError
impl !RefUnwindSafe for IndexerError
impl Send for IndexerError
impl Sync for IndexerError
impl Unpin for IndexerError
impl UnsafeUnpin for IndexerError
impl !UnwindSafe for IndexerError
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