docs/reference/exceptions.rst
All exceptions raised by the Pinecone SDK derive from :class:~pinecone.errors.exceptions.PineconeError
so that a single except PineconeError block can catch every SDK error if desired.
.. contents:: Sections :local: :depth: 1
.. code-block:: text
PineconeError ├── PineconeValueError (also ValueError) ├── PineconeTypeError (also TypeError) ├── PineconeConnectionError ├── PineconeTimeoutError (also TimeoutError) ├── ResponseParsingError ├── IndexInitFailedError └── ApiError ├── ConflictError (409) ├── NotFoundError (404) ├── ForbiddenError (403) ├── UnauthorizedError (401) └── ServiceError (5xx)
.. autoexception:: pinecone.errors.exceptions.PineconeError :members: :show-inheritance:
.. autoexception:: pinecone.errors.exceptions.PineconeValueError :members: :show-inheritance:
.. autoexception:: pinecone.errors.exceptions.PineconeTypeError :members: :show-inheritance:
.. autoexception:: pinecone.errors.exceptions.ResponseParsingError :members: :show-inheritance:
.. autoexception:: pinecone.errors.exceptions.IndexInitFailedError :members: :show-inheritance:
.. autoexception:: pinecone.errors.exceptions.PineconeConnectionError :members: :show-inheritance:
.. autoexception:: pinecone.errors.exceptions.PineconeTimeoutError :members: :show-inheritance:
.. autoexception:: pinecone.errors.exceptions.ApiError :members: :show-inheritance:
.. autoexception:: pinecone.errors.exceptions.NotFoundError :members: :show-inheritance:
.. autoexception:: pinecone.errors.exceptions.ConflictError :members: :show-inheritance:
.. autoexception:: pinecone.errors.exceptions.UnauthorizedError :members: :show-inheritance:
.. autoexception:: pinecone.errors.exceptions.ForbiddenError :members: :show-inheritance:
.. autoexception:: pinecone.errors.exceptions.ServiceError :members: :show-inheritance:
The following names are kept for backwards compatibility and will be removed in a future major release. New code should use the canonical names listed above.
.. list-table:: :header-rows: 1 :widths: 35 35 30
PineconeException~pinecone.errors.exceptions.PineconeErrorPineconeApiException~pinecone.errors.exceptions.ApiErrorPineconeConfigurationError~pinecone.errors.exceptions.PineconeValueErrorPineconeProtocolError~pinecone.errors.exceptions.PineconeErrorPineconeApiTypeError~pinecone.errors.exceptions.PineconeTypeErrorPineconeApiValueError~pinecone.errors.exceptions.PineconeValueErrorPineconeApiAttributeError~pinecone.errors.exceptions.PineconeErrorPineconeApiKeyError~pinecone.errors.exceptions.PineconeErrorNotFoundException~pinecone.errors.exceptions.NotFoundErrorUnauthorizedException~pinecone.errors.exceptions.UnauthorizedErrorForbiddenException~pinecone.errors.exceptions.ForbiddenErrorServiceException~pinecone.errors.exceptions.ServiceErrorListConversionException~pinecone.errors.exceptions.PineconeErrorValidationError~pinecone.errors.exceptions.PineconeValueError