Class HttpException

All Implemented Interfaces:
Serializable
Direct Known Subclasses:
ServiceDownException

public class HttpException extends GHIOException
IOException for http exceptions because HttpURLConnection throws un-discerned IOException and it can help to know the http response code to decide how to handle an http exceptions.
Author:
Cyrille Le Clerc
See Also:
  • Constructor Details

  • Method Details

    • getResponseCode

      public int getResponseCode()
      Http response code of the request that cause the exception.
      Returns:
      -1 if no code can be discerned.
    • getResponseMessage

      public String getResponseMessage()
      Http response message of the request that cause the exception.
      Returns:
      null if no response message can be discerned.
    • getUrl

      public String getUrl()
      The http URL that caused the exception.
      Returns:
      url url