|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.directwebremoting.jsonrpc.io.JsonRpcCallException
public class JsonRpcCallException
Thrown when a JSON-RPC request is not valid
| Constructor Summary | |
|---|---|
JsonRpcCallException(JsonRpcCalls calls,
java.lang.String reason,
int jsonRpcErrorCode,
int httpStatusCode)
Setup using values from JsonRpcCalls |
|
JsonRpcCallException(java.lang.String id,
java.lang.String version,
java.lang.String reason,
int jsonRpcErrorCode,
int httpStatusCode)
All exceptions need these values to aid response generation |
|
JsonRpcCallException(java.lang.String id,
java.lang.String version,
java.lang.String reason,
int jsonRpcErrorCode,
int httpStatusCode,
java.lang.String data)
Constructor will all possible fields setup |
|
| Method Summary | |
|---|---|
java.lang.Object |
getData()
Additional information, may be omitted. |
int |
getHttpStatusCode()
|
java.lang.String |
getId()
A Request identifier that SHOULD be a JSON scalar (String, Number, True, False), but SHOULD normally not be Null [1]. |
int |
getJsonRpcErrorCode()
|
java.lang.String |
getVersion()
|
| 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 |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public JsonRpcCallException(java.lang.String id,
java.lang.String version,
java.lang.String reason,
int jsonRpcErrorCode,
int httpStatusCode,
java.lang.String data)
public JsonRpcCallException(java.lang.String id,
java.lang.String version,
java.lang.String reason,
int jsonRpcErrorCode,
int httpStatusCode)
public JsonRpcCallException(JsonRpcCalls calls,
java.lang.String reason,
int jsonRpcErrorCode,
int httpStatusCode)
| Method Detail |
|---|
public int getJsonRpcErrorCode()
JsonRpcConstants, like
JsonRpcConstants.ERROR_CODE_NO_METHOD.public int getHttpStatusCode()
HttpServletResponse, like
HttpServletResponse.SC_NOT_FOUND.public java.lang.String getId()
public java.lang.Object getData()
public java.lang.String getVersion()
|
Copyright ยจ 2008 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||