Package com.esri.arcgisruntime.io
Class HttpResponseException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.io.IOException
-
- com.esri.arcgisruntime.internal.apachehttp.client5.http.ClientProtocolException
-
- com.esri.arcgisruntime.io.HttpResponseException
-
- All Implemented Interfaces:
Serializable
public class HttpResponseException extends com.esri.arcgisruntime.internal.apachehttp.client5.http.ClientProtocolException
Signals a non 2xx HTTP response.- Since:
- 4.0
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description HttpResponseException(int statusCode, String reasonPhrase)
HttpResponseException(int statusCode, String reasonPhrase, byte[] responseData)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getReasonPhrase()
byte[]
getResponseData()
Gets the response data associated with the exception.int
getStatusCode()
-
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()
-
getReasonPhrase
public String getReasonPhrase()
-
getResponseData
public byte[] getResponseData()
Gets the response data associated with the exception.- Returns:
- the response data as a byte array
-
-