Package io.goobi.viewer.exceptions
Class HTTPException
java.lang.Object
java.lang.Throwable
java.lang.Exception
io.goobi.viewer.exceptions.HTTPException
- All Implemented Interfaces:
Serializable
Thrown when an HTTP request returns an unexpected or error response code.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionHTTPException(int code, String string) Creates a new HTTPException instance. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
HTTPException
Creates a new HTTPException instance.- Parameters:
code- a int.string-String
-
-
Method Details
-
getCode
public int getCode()Getter for the fieldcode.- Returns:
- the HTTP status code associated with this exception
-