Class HttpException

  • All Implemented Interfaces:

    public class HttpException
    extends java.lang.RuntimeException
    Class of HTTP Exceptions from Atlas code
    See Also:
    Serialized Form
    • Constructor Summary

      Constructor Description
      HttpException​(int statusCode, java.lang.String statusLine, java.lang.String response)  
      HttpException​(java.lang.String message)  
      HttpException​(java.lang.String message, java.lang.Throwable cause)  
      HttpException​(java.lang.Throwable cause)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getResponse()
      The response payload from the remote.
      int getStatusCode()
      Gets the status code, may be -1 if unknown
      java.lang.String getStatusLine()
      Gets the status line text, may be null if unknown.
      • 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

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

      • HttpException

        public HttpException​(int statusCode,
                             java.lang.String statusLine,
                             java.lang.String response)
      • HttpException

        public HttpException​(java.lang.String message)
      • HttpException

        public HttpException​(java.lang.String message,
                             java.lang.Throwable cause)
      • HttpException

        public HttpException​(java.lang.Throwable cause)
    • Method Detail

      • getStatusCode

        public int getStatusCode()
        Gets the status code, may be -1 if unknown
        Status Code if known, -1 otherwise
      • getStatusLine

        public java.lang.String getStatusLine()
        Gets the status line text, may be null if unknown. HTTP/2 does not have status line text.
        Status line
      • getResponse

        public java.lang.String getResponse()
        The response payload from the remote.
        The payload, or null if no payload