|
||||||||||
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.RequestException
This exception indicates that an error occured while reading or parsing the client request.
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 | |
RequestException(int code)
Constructs a new RequestException with the status code. |
|
RequestException(int code,
java.lang.String message)
Constructs a new RequestException with the given status code and message. |
|
RequestException(java.lang.String message)
Constructs a new RequestException 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 RequestException(int code, java.lang.String message)
code
- the status codemessage
- the messagepublic RequestException(java.lang.String message)
The Response.SC_BAD_REQUEST is used as the status code.
message
- the messagepublic RequestException(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 |