Class HTTPException

java.lang.Object
java.lang.Throwable
java.lang.Exception
io.goobi.viewer.exceptions.HTTPException
All Implemented Interfaces:
Serializable

public class HTTPException extends Exception implements Serializable
Thrown when an HTTP request returns an unexpected or error response code.
See Also:
  • Constructor Details

    • HTTPException

      public HTTPException(int code, String string)
      Creates a new HTTPException instance.
      Parameters:
      code - a int.
      string - String
  • Method Details

    • getCode

      public int getCode()
      Getter for the field code.
      Returns:
      the HTTP status code associated with this exception