|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.lang.Throwable java.lang.Exception java.io.IOException SK.gnome.dwarf.http.ResponseException
This exception indicates that an error occured while constructing or sending the HTTP response.
It contains also the response status code for sending back to the client in the error messages.
Field Summary | |
protected int |
code
The response status code. |
Constructor Summary | |
ResponseException(int code)
Constructs a new ResponseException with the status code. |
|
ResponseException(int code,
java.lang.String message)
Constructs a new ResponseException with the given status code and message. |
|
ResponseException(java.lang.String message)
Constructs a new ResponseException with the given message. |
Method Summary | |
int |
getCode()
Returns the status code. |
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 |
Field Detail |
protected int code
Constructor Detail |
public ResponseException(int code, java.lang.String message)
code
- the status codemessage
- the messagepublic ResponseException(java.lang.String message)
The Response.SC_BAD_REQUEST is used as the status code.
message
- the messagepublic ResponseException(int code)
code
- the status codeMethod Detail |
public int getCode()
code
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |