Package org.eclipse.rdf4j.http.server
Class ServerHTTPException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.eclipse.rdf4j.http.server.HTTPException
org.eclipse.rdf4j.http.server.ServerHTTPException
- All Implemented Interfaces:
Serializable
HTTP-related exception indicating that an error occurred in a server. Status codes for these types of errors are in
the 5xx range. The default status code for constructors without a statusCode parameter is 500
Internal Server Error.
- Author:
- Arjohn Kampman
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionCreates aServerHTTPExceptionwith status code 500 "Internal Server Error".ServerHTTPException(int statusCode) Creates aServerHTTPExceptionwith the specified status code.ServerHTTPException(int statusCode, String message) Creates aServerHTTPExceptionwith the specified status code.ServerHTTPException(int statusCode, String message, Throwable t) Creates aServerHTTPExceptionwith the specified status code.ServerHTTPException(int statusCode, Throwable t) Creates aServerHTTPExceptionwith the specified status code.Creates aServerHTTPExceptionwith status code 500 "Internal Server Error".ServerHTTPException(String msg, Throwable t) Creates aServerHTTPExceptionwith status code 500 "Internal Server Error". -
Method Summary
Methods inherited from class org.eclipse.rdf4j.http.server.HTTPException
getStatusCodeMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
ServerHTTPException
public ServerHTTPException()Creates aServerHTTPExceptionwith status code 500 "Internal Server Error". -
ServerHTTPException
Creates aServerHTTPExceptionwith status code 500 "Internal Server Error". -
ServerHTTPException
Creates aServerHTTPExceptionwith status code 500 "Internal Server Error". -
ServerHTTPException
public ServerHTTPException(int statusCode) Creates aServerHTTPExceptionwith the specified status code. The supplied status code must be in the 5xx range.- Throws:
IllegalArgumentException- If statusCode is not in the 5xx range.
-
ServerHTTPException
Creates aServerHTTPExceptionwith the specified status code. The supplied status code must be in the 5xx range.- Throws:
IllegalArgumentException- If statusCode is not in the 5xx range.
-
ServerHTTPException
Creates aServerHTTPExceptionwith the specified status code. The supplied status code must be in the 5xx range.- Throws:
IllegalArgumentException- If statusCode is not in the 5xx range.
-
ServerHTTPException
Creates aServerHTTPExceptionwith the specified status code. The supplied status code must be in the 5xx range.- Throws:
IllegalArgumentException- If statusCode is not in the 5xx range.
-
-
Method Details
-
setStatusCode
protected void setStatusCode(int statusCode) - Overrides:
setStatusCodein classHTTPException
-