Package org.eclipse.rdf4j.http.server
Class ClientHTTPException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.eclipse.rdf4j.http.server.HTTPException
org.eclipse.rdf4j.http.server.ClientHTTPException
- All Implemented Interfaces:
Serializable
HTTP-related exception indicating that an HTTP client has erred. Status codes for these types of errors are in the
4xx range. The default status code for constructors without a statusCode parameter is 400 Bad
Request.
- Author:
- Arjohn Kampman
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionCreates aClientHTTPExceptionwith status code 400 "Bad Request".ClientHTTPException(int statusCode) Creates aClientHTTPExceptionwith the specified status code.ClientHTTPException(int statusCode, String message) Creates aClientHTTPExceptionwith the specified status code.ClientHTTPException(int statusCode, String message, Throwable t) Creates aClientHTTPExceptionwith the specified status code.ClientHTTPException(int statusCode, Throwable t) Creates aClientHTTPExceptionwith the specified status code.Creates aClientHTTPExceptionwith status code 400 "Bad Request".ClientHTTPException(String msg, Throwable t) Creates aClientHTTPExceptionwith status code 400 "Bad Request". -
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
-
ClientHTTPException
public ClientHTTPException()Creates aClientHTTPExceptionwith status code 400 "Bad Request". -
ClientHTTPException
Creates aClientHTTPExceptionwith status code 400 "Bad Request". -
ClientHTTPException
Creates aClientHTTPExceptionwith status code 400 "Bad Request". -
ClientHTTPException
public ClientHTTPException(int statusCode) Creates aClientHTTPExceptionwith the specified status code.- Throws:
IllegalArgumentException- If statusCode is not in the 4xx range.
-
ClientHTTPException
Creates aClientHTTPExceptionwith the specified status code.- Throws:
IllegalArgumentException- If statusCode is not in the 4xx range.
-
ClientHTTPException
Creates aClientHTTPExceptionwith the specified status code.- Throws:
IllegalArgumentException- If statusCode is not in the 4xx range.
-
ClientHTTPException
Creates aClientHTTPExceptionwith the specified status code.- Throws:
IllegalArgumentException- If statusCode is not in the 4xx range.
-
-
Method Details
-
setStatusCode
protected void setStatusCode(int statusCode) - Overrides:
setStatusCodein classHTTPException
-