Class ResponseException

  • All Implemented Interfaces:
    java.io.Serializable

    public final class ResponseException
    extends java.io.IOException
    Exception thrown when an elasticsearch node responds to a request with a status code that indicates an error. Holds the response that was returned.
    See Also:
    Serialized Form
    • Method Summary

      Modifier and Type Method Description
      Response getResponse()
      Returns the Response that caused this exception to be thrown.
      • 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

      • ResponseException

        public ResponseException​(Response response)
                          throws java.io.IOException
        Throws:
        java.io.IOException
    • Method Detail

      • getResponse

        public Response getResponse()
        Returns the Response that caused this exception to be thrown.