exceptions
- class opensearchpy.AuthenticationException[source]
Bases:
TransportErrorException representing a 401 status code.
- class opensearchpy.AuthorizationException[source]
Bases:
TransportErrorException representing a 403 status code.
- class opensearchpy.ConflictError[source]
Bases:
TransportErrorException representing a 409 status code.
- class opensearchpy.ConnectionError[source]
Bases:
TransportErrorError raised when there was an exception while talking to OpenSearch. Original exception from the underlying
Connectionimplementation is available as.info.
- class opensearchpy.ConnectionTimeout[source]
Bases:
ConnectionErrorA network timeout. Doesn’t cause a node retry by default.
- class opensearchpy.ImproperlyConfigured[source]
Bases:
ExceptionException raised when the config passed to the client is inconsistent or invalid.
- class opensearchpy.NotFoundError[source]
Bases:
TransportErrorException representing a 404 status code.
- opensearchpy.OpenSearchDeprecationWarning
alias of
OpenSearchWarning
- class opensearchpy.OpenSearchException[source]
Bases:
ExceptionBase class for all exceptions raised by this package’s operations (doesn’t apply to
ImproperlyConfigured).
- class opensearchpy.OpenSearchWarning[source]
Bases:
WarningWarning that is raised when a deprecated option or incorrect usage is flagged via the ‘Warning’ HTTP header.
- class opensearchpy.RequestError[source]
Bases:
TransportErrorException representing a 400 status code.
- class opensearchpy.SerializationError[source]
Bases:
OpenSearchExceptionData passed in failed to serialize properly in the
Serializerbeing used.
- class opensearchpy.SSLError[source]
Bases:
ConnectionErrorError raised when encountering SSL errors.
- class opensearchpy.TransportError[source]
Bases:
OpenSearchExceptionException raised when OpenSearch returns a non-OK (>=400) HTTP status code. Or when an actual connection error happens; in that case the
status_codewill be set to'N/A'.
- class opensearchpy.OpenSearchDslException[source]
Bases:
ExceptionBase class for all OpenSearchDsl exceptions
- class opensearchpy.IllegalOperation[source]
Bases:
OpenSearchDslExceptionException representing IllegalOperation
- class opensearchpy.UnknownDslObject[source]
Bases:
OpenSearchDslExceptionException representing UnknownDSLObject
- class opensearchpy.ValidationException[source]
Bases:
ValueError,OpenSearchDslExceptionException representing Validation Error