Class HttpResponseException

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 Details

    • HttpResponseException

      public HttpResponseException(int statusCode, String reasonPhrase)
    • HttpResponseException

      public HttpResponseException(int statusCode, String reasonPhrase, byte[] responseData)
  • Method Details

    • 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