Class HttpResponseException

  • All Implemented Interfaces:
    java.io.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, java.lang.String reasonPhrase)  
      HttpResponseException​(int statusCode, java.lang.String reasonPhrase, byte[] responseData)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.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
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • HttpResponseException

        public HttpResponseException​(int statusCode,
                                     java.lang.String reasonPhrase)
      • HttpResponseException

        public HttpResponseException​(int statusCode,
                                     java.lang.String reasonPhrase,
                                     byte[] responseData)
    • Method Detail

      • getStatusCode

        public int getStatusCode()
      • getReasonPhrase

        public java.lang.String getReasonPhrase()
      • getResponseData

        public byte[] getResponseData()
        Gets the response data associated with the exception.
        Returns:
        the response data as a byte array