pub enum VectorizerError {
Show 17 variants
Authentication {
message: String,
},
CollectionNotFound {
collection: String,
},
VectorNotFound {
collection: String,
vector_id: String,
},
Validation {
message: String,
},
Network {
message: String,
},
Server {
message: String,
},
Timeout {
timeout_secs: u64,
},
RateLimit {
message: String,
},
Configuration {
message: String,
},
Embedding {
message: String,
},
Search {
message: String,
},
Storage {
message: String,
},
BatchOperation {
message: String,
},
Mcp {
message: String,
},
Serialization(String),
Http(Error),
Io(Error),
}
Expand description
Main error type for the Vectorizer SDK
Variants§
Authentication
Authentication failed
CollectionNotFound
Collection not found
VectorNotFound
Vector not found
Validation
Validation error
Network
Network error
Server
Server error
Timeout
Timeout error
RateLimit
Rate limit exceeded
Configuration
Configuration error
Embedding
Embedding generation error
Search
Search error
Storage
Storage error
BatchOperation
Batch operation error
Mcp
MCP (Model Context Protocol) error
Serialization(String)
Serialization error
Http(Error)
HTTP error
Io(Error)
IO error
Implementations§
Source§impl VectorizerError
impl VectorizerError
Sourcepub fn authentication(message: impl Into<String>) -> Self
pub fn authentication(message: impl Into<String>) -> Self
Create a new authentication error
Sourcepub fn collection_not_found(collection: impl Into<String>) -> Self
pub fn collection_not_found(collection: impl Into<String>) -> Self
Create a new collection not found error
Sourcepub fn vector_not_found(
collection: impl Into<String>,
vector_id: impl Into<String>,
) -> Self
pub fn vector_not_found( collection: impl Into<String>, vector_id: impl Into<String>, ) -> Self
Create a new vector not found error
Sourcepub fn validation(message: impl Into<String>) -> Self
pub fn validation(message: impl Into<String>) -> Self
Create a new validation error
Sourcepub fn rate_limit(message: impl Into<String>) -> Self
pub fn rate_limit(message: impl Into<String>) -> Self
Create a new rate limit error
Sourcepub fn configuration(message: impl Into<String>) -> Self
pub fn configuration(message: impl Into<String>) -> Self
Create a new configuration error
Sourcepub fn batch_operation(message: impl Into<String>) -> Self
pub fn batch_operation(message: impl Into<String>) -> Self
Create a new batch operation error
Trait Implementations§
Source§impl Debug for VectorizerError
impl Debug for VectorizerError
Source§impl Display for VectorizerError
impl Display for VectorizerError
Source§impl Error for VectorizerError
impl Error for VectorizerError
1.30.0 · 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 VectorizerError
impl From<Error> for VectorizerError
Source§impl From<Error> for VectorizerError
impl From<Error> for VectorizerError
Auto Trait Implementations§
impl Freeze for VectorizerError
impl !RefUnwindSafe for VectorizerError
impl Send for VectorizerError
impl Sync for VectorizerError
impl Unpin for VectorizerError
impl !UnwindSafe for VectorizerError
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> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string
, but without panic on OOM.