Exceptions¶
- class elasticsearch.ImproperlyConfigured¶
Exception raised when the config passed to the client is inconsistent or invalid.
- class elasticsearch.ElasticsearchException¶
Base class for all exceptions raised by this package’s operations (doesn’t apply to ImproperlyConfigured).
- class elasticsearch.SerializationError(ElasticsearchException)¶
Data passed in failed to serialize properly in the Serializer being used.
- class elasticsearch.TransportError(ElasticsearchException)¶
Exception raised when ES returns a non-OK (>=400) HTTP status code. Or when an actual connection error happens; in that case the status_code will be set to 'N/A'.
- error¶
A string error message.
- info¶
Dict of returned error info from ES, where available.
- status_code¶
The HTTP status code of the response that precipitated the error or 'N/A' if not applicable.
- class elasticsearch.NotFoundError(TransportError)¶
Exception representing a 404 status code.
- class elasticsearch.ConflictError(TransportError)¶
Exception representing a 409 status code.
- class elasticsearch.RequestError(TransportError)¶
Exception representing a 400 status code.
- class elasticsearch.ConnectionError(TransportError)¶
Error raised when there was an exception while talking to ES. Original exception from the underlying Connection implementation is available as .info.