weaviate.exceptions
Weaviate Exceptions.
- exception weaviate.exceptions.AdditionalPropertiesError(additional_dict: str, additional_dataclass: str)[source]
Bases:
WeaviateBaseErrorAdditional properties were provided multiple times.
Weaviate base exception initializer.
- Arguments:
- message:
An error message specific to the context in which the error occurred.
- weaviate.exceptions.AdditionalPropertiesException
alias of
AdditionalPropertiesError
- exception weaviate.exceptions.AuthenticationFailedError(message: str = '')[source]
Bases:
WeaviateBaseErrorAuthentication Failed Exception.
Weaviate base exception initializer.
- Arguments:
- message:
An error message specific to the context in which the error occurred.
- weaviate.exceptions.AuthenticationFailedException
alias of
AuthenticationFailedError
- exception weaviate.exceptions.BackupFailedError(message: str = '')[source]
Bases:
WeaviateBaseErrorBackup Failed Exception.
Weaviate base exception initializer.
- Arguments:
- message:
An error message specific to the context in which the error occurred.
- weaviate.exceptions.BackupFailedException
alias of
BackupFailedError
- exception weaviate.exceptions.EmptyResponseError(message: str = '')[source]
Bases:
WeaviateBaseErrorOccurs when an HTTP request unexpectedly returns an empty response
Weaviate base exception initializer.
- Arguments:
- message:
An error message specific to the context in which the error occurred.
- weaviate.exceptions.EmptyResponseException
alias of
EmptyResponseError
- exception weaviate.exceptions.InvalidDataModelError(type_: str)[source]
Bases:
WeaviateBaseErrorIs raised when the user provides a generic that is not supported
Weaviate base exception initializer.
- Arguments:
- message:
An error message specific to the context in which the error occurred.
- weaviate.exceptions.InvalidDataModelException
alias of
InvalidDataModelError
- exception weaviate.exceptions.MissingScopeError(message: str = '')[source]
Bases:
WeaviateBaseErrorScope was not provided with client credential flow.
Weaviate base exception initializer.
- Arguments:
- message:
An error message specific to the context in which the error occurred.
- weaviate.exceptions.MissingScopeException
alias of
MissingScopeError
- exception weaviate.exceptions.ObjectAlreadyExistsError(message: str = '')[source]
Bases:
WeaviateBaseErrorObject Already Exists Exception.
Weaviate base exception initializer.
- Arguments:
- message:
An error message specific to the context in which the error occurred.
- weaviate.exceptions.ObjectAlreadyExistsException
alias of
ObjectAlreadyExistsError
- exception weaviate.exceptions.ResponseCannotBeDecodedError(location: str, response: Response | Response)[source]
Bases:
WeaviateBaseErrorRaised when a weaviate response cannot be decoded to json
- Arguments:
- location:
From which code path the exception was raised.
- response:
The request response of which the status code was unexpected.
- property status_code: int
- weaviate.exceptions.ResponseCannotBeDecodedException
alias of
ResponseCannotBeDecodedError
- exception weaviate.exceptions.SchemaValidationError(message: str = '')[source]
Bases:
WeaviateBaseErrorSchema Validation Exception.
Weaviate base exception initializer.
- Arguments:
- message:
An error message specific to the context in which the error occurred.
- weaviate.exceptions.SchemaValidationException
alias of
SchemaValidationError
- exception weaviate.exceptions.UnexpectedStatusCodeError(message: str, response: Response | Response)[source]
Bases:
WeaviateBaseErrorIs raised in case the status code returned from Weaviate is not handled in the client implementation and suggests an error.
Is raised in case the status code returned from Weaviate is not handled in the client implementation and suggests an error.
Custom code can act on the attributes: - status_code - json
- Arguments:
- message:
An error message specific to the context, in which the error occurred.
- response:
The request response of which the status code was unexpected.
- property status_code: int
- weaviate.exceptions.UnexpectedStatusCodeException
alias of
UnexpectedStatusCodeError
- exception weaviate.exceptions.WeaviateAddInvalidPropertyError(message: str)[source]
Bases:
WeaviateBaseErrorIs raised when adding an invalid new property.
Weaviate base exception initializer.
- Arguments:
- message:
An error message specific to the context in which the error occurred.
- exception weaviate.exceptions.WeaviateBaseError(message: str = '')[source]
Bases:
ExceptionWeaviate base exception that all Weaviate exceptions should inherit from.
This error can be used to catch any Weaviate exceptions.
Weaviate base exception initializer.
- Arguments:
- message:
An error message specific to the context in which the error occurred.
- exception weaviate.exceptions.WeaviateBatchError(message: str)[source]
Bases:
WeaviateQueryErrorIs raised if a gRPC batch query to Weaviate fails in any way.
Weaviate base exception initializer.
- Arguments:
- message:
An error message specific to the context in which the error occurred.
- exception weaviate.exceptions.WeaviateBatchValidationError(message: str)[source]
Bases:
WeaviateBaseErrorIs raised when a batch validation error occurs.
Weaviate base exception initializer.
- Arguments:
- message:
An error message specific to the context in which the error occurred.
- exception weaviate.exceptions.WeaviateClosedClientError[source]
Bases:
WeaviateBaseErrorIs raised when a client is closed and a method is called on it.
Weaviate base exception initializer.
- Arguments:
- message:
An error message specific to the context in which the error occurred.
- exception weaviate.exceptions.WeaviateConnectionError(message: str = '')[source]
Bases:
WeaviateBaseErrorIs raised when the connection to Weaviate fails.
Weaviate base exception initializer.
- Arguments:
- message:
An error message specific to the context in which the error occurred.
- exception weaviate.exceptions.WeaviateDeleteManyError(message: str)[source]
Bases:
WeaviateQueryErrorIs raised if a gRPC delete many request to Weaviate fails in any way.
Weaviate base exception initializer.
- Arguments:
- message:
An error message specific to the context in which the error occurred.
- exception weaviate.exceptions.WeaviateEmbeddedInvalidVersionError(url: str)[source]
Bases:
WeaviateBaseErrorInvalid version provided to Weaviate embedded.
Weaviate base exception initializer.
- Arguments:
- message:
An error message specific to the context in which the error occurred.
- weaviate.exceptions.WeaviateEmbeddedInvalidVersionException
alias of
WeaviateEmbeddedInvalidVersionError
Bases:
WeaviateBaseErrorIs raised when a gRPC-backed query is made with no gRPC connection present.
Weaviate base exception initializer.
- Arguments:
- message:
An error message specific to the context in which the error occurred.
alias of
WeaviateGRPCUnavailableError
- exception weaviate.exceptions.WeaviateInsertInvalidPropertyError(data: dict)[source]
Bases:
WeaviateBaseErrorIs raised when inserting an invalid property.
Weaviate base exception initializer.
- Arguments:
- message:
An error message specific to the context in which the error occurred.
- exception weaviate.exceptions.WeaviateInsertManyAllFailedError(message: str = '')[source]
Bases:
WeaviateBaseErrorIs raised when all objects fail to be inserted.
Weaviate base exception initializer.
- Arguments:
- message:
An error message specific to the context in which the error occurred.
- exception weaviate.exceptions.WeaviateInvalidInputError(message: str)[source]
Bases:
WeaviateBaseErrorIs raised if the input to a function is invalid.
Weaviate base exception initializer.
- Arguments:
- message:
An error message specific to the context in which the error occurred.
- weaviate.exceptions.WeaviateInvalidInputException
alias of
WeaviateInvalidInputError
- exception weaviate.exceptions.WeaviateQueryError(message: str, protocol_type: str)[source]
Bases:
WeaviateBaseErrorIs raised if a query (either gRPC or GraphQL) to Weaviate fails in any way.
Weaviate base exception initializer.
- Arguments:
- message:
An error message specific to the context in which the error occurred.
- weaviate.exceptions.WeaviateQueryException
alias of
WeaviateQueryError
- exception weaviate.exceptions.WeaviateStartUpError(message: str = '')[source]
Bases:
WeaviateBaseErrorIs raised if weaviate is not available on the given url+port.
Weaviate base exception initializer.
- Arguments:
- message:
An error message specific to the context in which the error occurred.