Class TransportException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.io.IOException
co.elastic.clients.transport.TransportException
All Implemented Interfaces:
Serializable

public class TransportException extends IOException
See Also:
  • Constructor Details

    • TransportException

      public TransportException(int statusCode, String message, String endpointId)
    • TransportException

      public TransportException(int statusCode, String message, String endpointId, Throwable cause)
  • Method Details

    • statusCode

      public int statusCode()
      Status code returned by the http resquest
    • endpointId

      @Nullable public String endpointId()
      Identifier of the API endpoint that caused the exception, if known.