Class HTTPException

All Implemented Interfaces:
Serializable
Direct Known Subclasses:
HTTP2ConnectionError, InvalidHTTPMessageException, MessageStreamClosedException

public class HTTPException extends IOException
An exception thrown when any kind of HTTP protocol error is encountered.
Since:
1.4.1
See Also:
  • Constructor Details

    • HTTPException

      public HTTPException()
      Creates a new HTTPException with no detail message.
    • HTTPException

      public HTTPException(String msg)
      Creates a new HTTPException with the given detail message.
      Parameters:
      msg - The detail message
    • HTTPException

      public HTTPException(String msg, Throwable cause)
      Creates a new HTTPException with the given detail message and cause.
      Parameters:
      msg - The detail message
      cause - The cause