java.lang.Object
java.lang.Throwable
java.lang.Exception
java.io.IOException
org.apache.hc.client5.http.ClientProtocolException
com.esri.arcgisruntime.io.HttpResponseException
- All Implemented Interfaces:
Serializable
public class HttpResponseException
extends org.apache.hc.client5.http.ClientProtocolException
Signals a non 2xx HTTP response.
- Since:
- 4.0
- See Also:
-
Constructor Summary
ConstructorDescriptionHttpResponseException
(int statusCode, String reasonPhrase) HttpResponseException
(int statusCode, String reasonPhrase, byte[] responseData) -
Method Summary
Modifier and TypeMethodDescriptionbyte[]
Gets the response data associated with the exception.int
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
HttpResponseException
-
HttpResponseException
-
-
Method Details
-
getStatusCode
public int getStatusCode() -
getReasonPhrase
-
getResponseData
public byte[] getResponseData()Gets the response data associated with the exception.- Returns:
- the response data as a byte array
-