Class RequestException

All Implemented Interfaces:
Serializable

public class RequestException extends IOException
Exception class for HTTP request errors.
Author:
Christopher Mindus
See Also:
  • Field Details

    • rc

      public final int rc
      The HTTP return code, -1 if no code can be discerned from the response (i.e., the response is not valid HTTP).
    • reply

      public final String reply
      The HTTP reply. Extracts the Strings "OK" and "Not Found" respectively from the HTTP reply (e.g. "HTTP/1.0 404 Not Found"), null if none could be discerned from the responses (the result was not valid HTTP).
  • Constructor Details

    • RequestException

      public RequestException(String message)
      Creates a request exception.
      Parameters:
      message - The message.
    • RequestException

      public RequestException(String message, Throwable cause)
      Creates a request exception.
      Parameters:
      message - The message.
      cause - The cause.
    • RequestException

      public RequestException(String message, Throwable cause, int rc, String reply)
      Creates a request exception.
      Parameters:
      message - The message.
      cause - The cause.
      rc - The HTTP return code.
      reply - The reply from HTTP.