Package org.apache.http.client
Class HttpResponseException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.io.IOException
org.apache.http.client.ClientProtocolException
org.apache.http.client.HttpResponseException
- All Implemented Interfaces:
Serializable
public class HttpResponseException extends ClientProtocolException
Signals a non 2xx HTTP response.
- See Also:
- Serialized Form
-
Constructor Summary
Constructors Constructor Description HttpResponseException(int statusCode, String s) -
Method Summary
Modifier and Type Method Description intgetStatusCode()Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
HttpResponseException
-
-
Method Details
-
getStatusCode
public int getStatusCode()
-