Exceptions & Warnings¶
-
elasticsearch.ElasticsearchException¶ alias of
elastic_transport.TransportError
-
class
elasticsearch.SerializationError(message: Any, errors: Tuple[Exception, ...] = ())¶ Error that occurred during the serialization or deserialization of an HTTP message body
-
class
elasticsearch.ConnectionError(message: Any, errors: Tuple[Exception, ...] = ())¶ Error raised by the HTTP connection
-
class
elasticsearch.ConnectionTimeout(message: Any, errors: Tuple[Exception, ...] = ())¶ Connection timed out during an operation
-
elasticsearch.SSLError¶ alias of
elastic_transport.TlsError
-
class
elasticsearch.ApiError(message: str, meta: elastic_transport.ApiResponseMeta, body: Any, errors: Tuple[Exception, ...] = ())¶ -
error¶ A string error message.
-
info¶ Backwards-compatible way to access ‘.body’
-
status_code¶ Backwards-compatible shorthand for ‘self.meta.status’
-
-
class
elasticsearch.NotFoundError(message: str, meta: elastic_transport.ApiResponseMeta, body: Any, errors: Tuple[Exception, ...] = ())¶ Exception representing a 404 status code.
-
class
elasticsearch.ConflictError(message: str, meta: elastic_transport.ApiResponseMeta, body: Any, errors: Tuple[Exception, ...] = ())¶ Exception representing a 409 status code.
-
elasticsearch.RequestError¶ alias of
elasticsearch.exceptions.BadRequestError
-
class
elasticsearch.AuthenticationException(message: str, meta: elastic_transport.ApiResponseMeta, body: Any, errors: Tuple[Exception, ...] = ())¶ Exception representing a 401 status code.
-
class
elasticsearch.AuthorizationException(message: str, meta: elastic_transport.ApiResponseMeta, body: Any, errors: Tuple[Exception, ...] = ())¶ Exception representing a 403 status code.
-
class
elasticsearch.UnsupportedProductError(message: str, meta: elastic_transport.ApiResponseMeta, body: Any, errors: Tuple[Exception, ...] = ())¶ Error which is raised when the client detects it’s not connected to a supported product.