Class HttpCommunicationException

All Implemented Interfaces:
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:
  • Constructor Details

    • HttpCommunicationException

      public HttpCommunicationException(int code, String body)

      Constructor for HttpCommunicationException.

      Parameters:
      code - a int
      body - a String object
    • HttpCommunicationException

      public HttpCommunicationException(Throwable t)

      Constructor for HttpCommunicationException.

      Parameters:
      t - a Throwable object
    • HttpCommunicationException

      public HttpCommunicationException(String message)

      Constructor for HttpCommunicationException.

      Parameters:
      message - a String object
  • Method Details

    • getCode

      public int getCode()

      Getter for the field code.

      Returns:
      a int
    • getBody

      public String getBody()

      Getter for the field body.

      Returns:
      a String object