|
||||||||||
| 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.ServerHTTPException
public class ServerHTTPException
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.
| Constructor Summary | |
|---|---|
ServerHTTPException()
Creates a ServerHTTPException with status code 500 "Internal
Server Error". |
|
ServerHTTPException(int statusCode)
Creates a ServerHTTPException with the specified status code. |
|
ServerHTTPException(int statusCode,
String message)
Creates a ServerHTTPException with the specified status code. |
|
ServerHTTPException(int statusCode,
String message,
Throwable t)
Creates a ServerHTTPException with the specified status code. |
|
ServerHTTPException(int statusCode,
Throwable t)
Creates a ServerHTTPException with the specified status code. |
|
ServerHTTPException(String msg)
Creates a ServerHTTPException with status code 500 "Internal
Server Error". |
|
ServerHTTPException(String msg,
Throwable t)
Creates a ServerHTTPException with status code 500 "Internal
Server Error". |
|
| 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 ServerHTTPException()
ServerHTTPException with status code 500 "Internal
Server Error".
public ServerHTTPException(String msg)
ServerHTTPException with status code 500 "Internal
Server Error".
public ServerHTTPException(String msg,
Throwable t)
ServerHTTPException with status code 500 "Internal
Server Error".
public ServerHTTPException(int statusCode)
ServerHTTPException with the specified status code.
IllegalArgumentException - If statusCode is not in the 5xx range.
public ServerHTTPException(int statusCode,
String message)
ServerHTTPException with the specified status code.
IllegalArgumentException - If statusCode is not in the 5xx range.
public ServerHTTPException(int statusCode,
String message,
Throwable t)
ServerHTTPException with the specified status code.
IllegalArgumentException - If statusCode is not in the 5xx range.
public ServerHTTPException(int statusCode,
Throwable t)
ServerHTTPException with the specified status code.
IllegalArgumentException - If statusCode is not in the 5xx 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 | |||||||||