Class HttpClientException

  • All Implemented Interfaces:
    Serializable

    public class HttpClientException
    extends Exception
    This exception is thrown when a HTTP request results in an error response.
    See Also:
    Serialized Form
    • Constructor Detail

      • HttpClientException

        public HttpClientException​(int statusCode,
                                   String statusMessage,
                                   String errorContent)
        Constructs a new HTTP client exception.
        Parameters:
        statusCode - the HTTP status code
        statusMessage - the HTTP status message
        errorContent - the error string from the HTTP content
    • Method Detail

      • getStatusCode

        public int getStatusCode()
        Returns the HTTP status code.
        Returns:
        the HTTP status code
      • getStatusMessage

        public String getStatusMessage()
        Returns the HTTP status message.
        Returns:
        the HTTP status message
      • getErrorContent

        public String getErrorContent()
        Returns the error string from the HTTP content.
        Returns:
        the error string from the HTTP content