Package eu.woolplatform.utils.http
Class HttpClientException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- eu.woolplatform.utils.http.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 Summary
Constructors Constructor Description HttpClientException(int statusCode, String statusMessage, String errorContent)Constructs a new HTTP client exception.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetErrorContent()Returns the error string from the HTTP content.intgetStatusCode()Returns the HTTP status code.StringgetStatusMessage()Returns the HTTP status message.-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
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
-
-