pub enum VectorError {
Index(String),
Store(Box<Error>),
Embedding(String),
Grpc(Box<Status>),
Collection {
name: String,
reason: String,
},
DimensionMismatch {
expected: usize,
got: usize,
},
Serialization(Box<Error>),
Io(Box<Error>),
Config(String),
SearchError(String),
FilterError(String),
NotFound {
entity: String,
id: String,
},
}Expand description
Unified error type for all claw-vector operations.
Variants§
Index(String)
HNSW or flat index failure.
Store(Box<Error>)
SQLite persistence failure.
Embedding(String)
Embedding generation failure.
Grpc(Box<Status>)
gRPC transport failure.
Collection
A collection-level error (not found, already exists, etc.).
DimensionMismatch
Vector dimension does not match the collection’s configured dimension.
Fields
Serialization(Box<Error>)
JSON serialisation/deserialisation failure.
Io(Box<Error>)
I/O error (file system operations).
Config(String)
Invalid configuration.
SearchError(String)
ANN search failure.
FilterError(String)
Metadata filter DSL error.
NotFound
The requested entity was not found.
Implementations§
Source§impl VectorError
impl VectorError
Sourcepub fn is_not_found(&self) -> bool
pub fn is_not_found(&self) -> bool
Return true if this error represents a “not found” condition.
Sourcepub fn is_dimension_mismatch(&self) -> bool
pub fn is_dimension_mismatch(&self) -> bool
Return true if this error is a dimension mismatch.
Sourcepub fn is_collection_error(&self) -> bool
pub fn is_collection_error(&self) -> bool
Return true if this error is a collection-level error.
Trait Implementations§
Source§impl Debug for VectorError
impl Debug for VectorError
Source§impl Display for VectorError
impl Display for VectorError
Source§impl Error for VectorError
impl Error for VectorError
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 VectorError
impl From<Error> for VectorError
Source§impl From<Error> for VectorError
impl From<Error> for VectorError
Source§impl From<Error> for VectorError
impl From<Error> for VectorError
Source§impl From<Status> for VectorError
impl From<Status> for VectorError
Source§impl From<VectorError> for Status
impl From<VectorError> for Status
Source§fn from(e: VectorError) -> Status
fn from(e: VectorError) -> Status
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for VectorError
impl !RefUnwindSafe for VectorError
impl Send for VectorError
impl Sync for VectorError
impl Unpin for VectorError
impl UnsafeUnpin for VectorError
impl !UnwindSafe for VectorError
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 moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request