|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.lang.Throwable
java.lang.Exception
org.openrdf.http.server.HTTPException
org.openrdf.http.server.ClientHTTPException
public class ClientHTTPException
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.
| Constructor Summary | |
|---|---|
ClientHTTPException()
Creates a ClientHTTPException with status code 400 "Bad Request". |
|
ClientHTTPException(int statusCode)
Creates a ClientHTTPException with the specified status code. |
|
ClientHTTPException(int statusCode,
String message)
Creates a ClientHTTPException with the specified status code. |
|
ClientHTTPException(int statusCode,
String message,
Throwable t)
Creates a ClientHTTPException with the specified status code. |
|
ClientHTTPException(int statusCode,
Throwable t)
Creates a ClientHTTPException with the specified status code. |
|
ClientHTTPException(String msg)
Creates a ClientHTTPException with status code 400 "Bad Request". |
|
ClientHTTPException(String msg,
Throwable t)
Creates a ClientHTTPException with status code 400 "Bad Request". |
|
| Method Summary | |
|---|---|
protected void |
setStatusCode(int statusCode)
|
| Methods inherited from class org.openrdf.http.server.HTTPException |
|---|
getStatusCode |
| Methods inherited from class java.lang.Throwable |
|---|
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ClientHTTPException()
ClientHTTPException with status code 400 "Bad Request".
public ClientHTTPException(String msg)
ClientHTTPException with status code 400 "Bad Request".
public ClientHTTPException(String msg,
Throwable t)
ClientHTTPException with status code 400 "Bad Request".
public ClientHTTPException(int statusCode)
ClientHTTPException with the specified status code.
IllegalArgumentException - If statusCode is not in the 4xx range.
public ClientHTTPException(int statusCode,
String message)
ClientHTTPException with the specified status code.
IllegalArgumentException - If statusCode is not in the 4xx range.
public ClientHTTPException(int statusCode,
String message,
Throwable t)
ClientHTTPException with the specified status code.
IllegalArgumentException - If statusCode is not in the 4xx range.
public ClientHTTPException(int statusCode,
Throwable t)
ClientHTTPException with the specified status code.
IllegalArgumentException - If statusCode is not in the 4xx range.| Method Detail |
|---|
protected void setStatusCode(int statusCode)
setStatusCode in class HTTPException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||