Class HTTPClientException

    • Constructor Detail

      • HTTPClientException

        public HTTPClientException()
      • HTTPClientException

        public HTTPClientException​(Throwable throwable)
      • HTTPClientException

        public HTTPClientException​(String message)
      • HTTPClientException

        public HTTPClientException​(String message,
                                   Throwable cause)
      • HTTPClientException

        public HTTPClientException​(int code,
                                   Map<String,​List<String>> responseHeaders,
                                   String responseBody)
      • HTTPClientException

        public HTTPClientException​(int code,
                                   String message)
    • Method Detail

      • getCode

        public int getCode()
        Get the HTTP status code.
        Returns:
        HTTP status code
      • getResponseHeaders

        public Map<String,​List<String>> getResponseHeaders()
        Get the HTTP response headers.
        Returns:
        A map of list of string
      • getResponseBody

        public String getResponseBody()
        Get the HTTP response body.
        Returns:
        Response body in the form of string