pub enum PineconeError {
Show 24 variants
UnknownResponseError {
status: StatusCode,
message: String,
},
ActionForbiddenError {
source: WrappedResponseContent,
},
APIKeyMissingError {
message: String,
},
InvalidHeadersError {
message: String,
},
TimeoutError {
message: String,
},
ConnectionError {
source: Error,
},
ReqwestError {
source: Error,
},
SerdeError {
source: Error,
},
IoError {
message: String,
},
BadRequestError {
source: WrappedResponseContent,
},
UnauthorizedError {
source: WrappedResponseContent,
},
PodQuotaExceededError {
source: WrappedResponseContent,
},
CollectionsQuotaExceededError {
source: WrappedResponseContent,
},
InvalidCloudError {
source: WrappedResponseContent,
},
InvalidRegionError {
source: WrappedResponseContent,
},
InvalidConfigurationError {
message: String,
},
CollectionNotFoundError {
source: WrappedResponseContent,
},
IndexNotFoundError {
source: WrappedResponseContent,
},
ResourceAlreadyExistsError {
source: WrappedResponseContent,
},
UnprocessableEntityError {
source: WrappedResponseContent,
},
PendingCollectionError {
source: WrappedResponseContent,
},
InternalServerError {
source: WrappedResponseContent,
},
DataPlaneError {
status: Status,
},
InferenceError {
status: Status,
},
}
Expand description
PineconeError is the error type for all Pinecone SDK errors.
Variants§
UnknownResponseError
UnknownResponseError: Unknown response error.
ActionForbiddenError
ActionForbiddenError: Action is forbidden.
Fields
source: WrappedResponseContent
Source error
APIKeyMissingError
APIKeyMissingError: API key is not provided as an argument nor in the environment variable PINECONE_API_KEY
.
InvalidHeadersError
InvalidHeadersError: Provided headers are not valid. Expects JSON.
TimeoutError
TimeoutError: Request timed out.
ConnectionError
ConnectionError: Failed to establish a connection.
ReqwestError
ReqwestError: Error caused by Reqwest
SerdeError
SerdeError: Error caused by Serde
IoError
IoError: Error caused by IO
BadRequestError
BadRequestError: Bad request. The request body included invalid request parameters
Fields
source: WrappedResponseContent
Source error
UnauthorizedError: Unauthorized. Possibly caused by invalid API key
Fields
Source error
PodQuotaExceededError
PodQuotaExceededError: Pod quota exceeded
Fields
source: WrappedResponseContent
Source error
CollectionsQuotaExceededError
CollectionsQuotaExceededError: Collections quota exceeded
Fields
source: WrappedResponseContent
Source error
InvalidCloudError
InvalidCloudError: Provided cloud is not valid.
Fields
source: WrappedResponseContent
Source error
InvalidRegionError
InvalidRegionError: Provided region is not valid.
Fields
source: WrappedResponseContent
Source error
InvalidConfigurationError
InvalidConfigurationError: Provided configuration is not valid.
CollectionNotFoundError
CollectionNotFoundError: Collection of given name does not exist
Fields
source: WrappedResponseContent
Source error
IndexNotFoundError
IndexNotFoundError: Index of given name does not exist
Fields
source: WrappedResponseContent
Source error
ResourceAlreadyExistsError
ResourceAlreadyExistsError: Resource of given name already exists
Fields
source: WrappedResponseContent
Source error
UnprocessableEntityError
Unprocessable entity error: The request body could not be deserialized
Fields
source: WrappedResponseContent
Source error
PendingCollectionError
PendingCollectionError: There is a pending collection created from this index
Fields
source: WrappedResponseContent
Source error
InternalServerError
InternalServerError: Internal server error
Fields
source: WrappedResponseContent
Source error
DataPlaneError
DataPlaneError: Failed to perform a data plane operation.
InferenceError
InferenceError: Failed to perform an inference operation.
Trait Implementations§
Source§impl Debug for PineconeError
impl Debug for PineconeError
Source§impl Display for PineconeError
impl Display for PineconeError
Source§impl Error for PineconeError
impl Error for PineconeError
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
Auto Trait Implementations§
impl !Freeze for PineconeError
impl !RefUnwindSafe for PineconeError
impl Send for PineconeError
impl Sync for PineconeError
impl Unpin for PineconeError
impl !UnwindSafe for PineconeError
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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request
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.