Module Mal4J

Class HttpException

All Implemented Interfaces:
Serializable

public final class HttpException extends RuntimeException
Thrown if the server does not return a 200 OK response.
Since:
1.0.0
Version:
3.0.0
Author:
Katsute
See Also:
  • Constructor Details

    • HttpException

      public HttpException(String URL, int code, String message)
  • Method Details

    • URL

      public final String URL()
      Returns the URL from the Http request.
      Returns:
      URL
      Since:
      1.0.0
    • message

      public final String message()
      Returns the message from the Http request.
      Returns:
      message
      Since:
      1.0.0
    • code

      public final int code()
      Returns the code for the Http request.
      Returns:
      code
      Since:
      1.0.0