Class HttpException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.io.IOException
org.dmfs.httpessentials.exceptions.HttpException
All Implemented Interfaces:
Serializable

public class HttpException extends IOException
An Exception that's thrown when an error at HTTP level occurred. Some implementations might choose to throw an IOException or a subclass of it instead of this one.
See Also:
  • Constructor Details

    • HttpException

      public HttpException(String message)
      Create a new HttpException with a message.
      Parameters:
      message - An error message.
    • HttpException

      public HttpException(String message, Throwable cause)
      Create a new HttpException with a message and a cause.
      Parameters:
      message - An error message.
      cause - The reaons for this error.