weaviate.exceptions
Weaviate Exceptions.
- exception weaviate.exceptions.AdditionalPropertiesError(additional_dict: str, additional_dataclass: str)[source]
Bases:
WeaviateBaseError
Additional 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:
WeaviateBaseError
Authentication 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.BackupCanceledError(message: str = '')[source]
Bases:
WeaviateBaseError
Backup canceled Exception.
Weaviate base exception initializer.
- Arguments:
- message:
An error message specific to the context in which the error occurred.
- exception weaviate.exceptions.BackupFailedError(message: str = '')[source]
Bases:
WeaviateBaseError
Backup 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:
WeaviateBaseError
Occurs 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.InsufficientPermissionsError(res: Response | AioRpcError)[source]
Bases:
UnexpectedStatusCodeError
Is raised when a request to Weaviate fails due to insufficient permissions.
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.
- exception weaviate.exceptions.InvalidDataModelError(type_: str)[source]
Bases:
WeaviateBaseError
Is 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:
WeaviateBaseError
Scope 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:
WeaviateBaseError
Object 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)[source]
Bases:
WeaviateBaseError
Raised 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:
WeaviateBaseError
Schema 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 | AioRpcError)[source]
Bases:
WeaviateBaseError
Is 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:
WeaviateBaseError
Is 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:
Exception
Weaviate 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:
WeaviateQueryError
Is 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:
WeaviateBaseError
Is 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:
WeaviateBaseError
Is 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:
WeaviateBaseError
Is 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:
WeaviateQueryError
Is 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:
WeaviateBaseError
Invalid 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:
WeaviateBaseError
Is 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:
WeaviateBaseError
Is 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:
WeaviateBaseError
Is 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:
WeaviateBaseError
Is 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:
WeaviateBaseError
Is 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.WeaviateRetryError(message: str, count: int)[source]
Bases:
WeaviateBaseError
Is raised when a request to Weaviate fails and is retried multiple times.
Weaviate base exception initializer.
- Arguments:
- message:
An error message specific to the context in which the error occurred.
- exception weaviate.exceptions.WeaviateStartUpError(message: str = '')[source]
Bases:
WeaviateBaseError
Is 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.
- exception weaviate.exceptions.WeaviateTenantGetError(message: str)[source]
Bases:
WeaviateQueryError
Is raised if a gRPC tenant get 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.WeaviateTimeoutError(message: str = '')[source]
Bases:
WeaviateBaseError
Is raised when a request to Weaviate times out.
Weaviate base exception initializer.
- Arguments:
- message:
An error message specific to the context in which the error occurred.
- exception weaviate.exceptions.WeaviateUnsupportedFeatureError(feature: str, current: str, minimum: str)[source]
Bases:
WeaviateBaseError
Is raised when a client method tries to use a new feature with an old Weaviate version.
Weaviate base exception initializer.
- Arguments:
- message:
An error message specific to the context in which the error occurred.