Class HttpClientException

    • Constructor Summary

      Constructors 
      Constructor Description
      HttpClientException​(java.lang.String message)  
      HttpClientException​(java.lang.String message, java.lang.Throwable cause)  
      HttpClientException​(java.lang.String message, java.lang.Throwable cause, boolean shared)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getMessage()  
      java.lang.String getServiceId()
      Get the service ID of the http client that produced this exception.
      void setServiceId​(java.lang.String serviceId)
      Set the service id that produced this exception.
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, 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

      • HttpClientException

        public HttpClientException​(java.lang.String message)
        Parameters:
        message - The message
      • HttpClientException

        public HttpClientException​(java.lang.String message,
                                   java.lang.Throwable cause)
        Parameters:
        message - The message
        cause - The throwable
      • HttpClientException

        public HttpClientException​(java.lang.String message,
                                   java.lang.Throwable cause,
                                   boolean shared)
        Parameters:
        message - The message
        cause - The throwable
        shared - Shared instance
    • Method Detail

      • getServiceId

        @Nullable
        public final java.lang.String getServiceId()
        Get the service ID of the http client that produced this exception.
        Returns:
        The service ID of the client
      • setServiceId

        @Internal
        public final void setServiceId​(java.lang.String serviceId)
        Set the service id that produced this exception.
        Parameters:
        serviceId - The service id
        Throws:
        java.lang.IllegalStateException - If the service ID has already been set, or this is a shared exception (e.g. ReadTimeoutException).
      • getMessage

        public java.lang.String getMessage()
        Overrides:
        getMessage in class java.lang.Throwable