Class OpenSearchClientException

  • All Implemented Interfaces:
    java.io.Serializable

    public class OpenSearchClientException
    extends java.lang.RuntimeException
    Exception thrown by API client methods when OpenSearch could not accept or process a request.

    The response() contains the the raw response as returned by the API endpoint that was called.

    See Also:
    Serialized Form
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      Response response()
      The error response sent by OpenSearch
      int status()
      Status code returned by OpenSearch.
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • OpenSearchClientException

        public OpenSearchClientException​(Response response)
    • Method Detail

      • response

        public Response response()
        The error response sent by OpenSearch
      • status

        public int status()
        Status code returned by OpenSearch. Shortcut for response().status().