Class HttpCommunicationException

  • All Implemented Interfaces:
    java.io.Serializable

    public class HttpCommunicationException
    extends CommunicationException
    This class represents an exception which can happen during HTTP communication (with status code and message body).
    Since:
    1.3.0
    Author:
    Jerome Leleu
    See Also:
    Serialized Form
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getBody()  
      int getCode()  
      • 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

      • HttpCommunicationException

        public HttpCommunicationException​(int code,
                                          java.lang.String body)
      • HttpCommunicationException

        public HttpCommunicationException​(java.lang.Throwable t)
      • HttpCommunicationException

        public HttpCommunicationException​(java.lang.String message)
    • Method Detail

      • getCode

        public int getCode()
      • getBody

        public java.lang.String getBody()