|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object ikrs.json.AbstractJSONValue ikrs.json.JSONObject ikrs.json.rpc.DefaultJSONRPCError
public class DefaultJSONRPCError
The default JSONRPCError implementation.
Field Summary | |
---|---|
static int |
CODE_INTERNAL_JSON_ERROR
Internal error. |
static int |
CODE_INVALID_PARAMS
Invalid params. |
static int |
CODE_INVALID_REQUEST
Invalid Request. |
static int |
CODE_METHOD_NOT_FOUND
Method not found. |
static int |
CODE_PARSE_ERROR
Parse error. |
static int |
CODE_SERVER_ERROR_MIN
Server error. |
Fields inherited from interface ikrs.json.JSONValue |
---|
FALSE, NULL, TRUE, TYPE_ARRAY, TYPE_BOOLEAN, TYPE_NULL, TYPE_NUMBER, TYPE_OBJECT, TYPE_STRING |
Constructor Summary | |
---|---|
DefaultJSONRPCError()
|
|
DefaultJSONRPCError(JSONValue code,
JSONValue message,
JSONValue data)
|
Method Summary | |
---|---|
JSONValue |
getCode()
This method returns the value of the 'jsonrpc' field from this request. |
JSONValue |
getData()
Get the error object from the response (if result is null). |
JSONValue |
getMessage()
Get the RPC result of the call. |
Methods inherited from class ikrs.json.JSONObject |
---|
asJSONArray, asJSONObject, getMap, getObject, main, toString, write |
Methods inherited from class ikrs.json.AbstractJSONValue |
---|
asJSONBoolean, asJSONNumber, asJSONString, getArray, getBoolean, getNumber, getString, getTypeName, isArray, isBoolean, isNull, isNumber, isObject, isString, isValidTypeID, toJSONString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface ikrs.json.JSONValue |
---|
asJSONArray, asJSONBoolean, asJSONNumber, asJSONObject, asJSONString, getArray, getBoolean, getNumber, getObject, getString, isArray, isBoolean, isNull, isNumber, isObject, isString, toJSONString, write |
Field Detail |
---|
public static final int CODE_PARSE_ERROR
public static final int CODE_INVALID_REQUEST
public static final int CODE_METHOD_NOT_FOUND
public static final int CODE_INVALID_PARAMS
public static final int CODE_INTERNAL_JSON_ERROR
public static final int CODE_SERVER_ERROR_MIN
Constructor Detail |
---|
public DefaultJSONRPCError()
public DefaultJSONRPCError(JSONValue code, JSONValue message, JSONValue data)
Method Detail |
---|
public JSONValue getCode()
getCode
in interface JSONRPCError
public JSONValue getMessage()
getMessage
in interface JSONRPCError
public JSONValue getData()
getData
in interface JSONRPCError
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |