DataType - data type parameter.public static class ResponseObject.ErrorObject<DataType> extends Object
| Modifier and Type | Field and Description |
|---|---|
static long |
CODE_INTERNAL_ERROR
The code value for internal error meaning an internal JSON-RPC error.
|
static long |
CODE_INVALID_PARAMS
The code value for invalid params meaning invalid parameter(s).
|
static long |
CODE_INVALID_REQUEST
The code value for invalid calculatorRequest meaning the JSON sent is not a valid calculatorRequest
object.
|
static long |
CODE_METHOD_NOT_FOUND
The code value for method not found meaning the method does not exist nor available.
|
static long |
CODE_PARSE_ERROR
The code value for parse error meaning an invalid json received by the server or an error occurred on
the server while parsing the JSON text.
|
static long |
MAX_CODE_IMPLEMENTATION_DEFINED_SERVER_ERROR
The maximum value for codes reserved for implementation-defined server errors.
|
static long |
MAX_CODE_PREDEFINED_ERROR
The maximum value for codes reserved for pre-defined errors.
|
static long |
MIN_CODE_IMPLEMENTATION_DEFINED_SERVER_ERROR
The minimum value for codes reserved for implementation-defined server errors.
|
static long |
MIN_CODE_PREDEFINED_ERROR
The minimum value for codes reserved for pre-defined errors.
|
static String |
PROPERTY_NAME_CODE
The name for
code property. |
static String |
PROPERTY_NAME_DATA
The property for
data property. |
static String |
PROPERTY_NAME_MESSAGE
The name for
message property. |
| Constructor and Description |
|---|
ErrorObject() |
| Modifier and Type | Method and Description |
|---|---|
long |
getCode()
Returns the current value of "code" property.
|
DataType |
getData()
Returns the current value of "data" property.
|
String |
getMessage()
Returns the current value of "message" property.
|
void |
setCode(long code)
Replaces the current value of "code" property with given.
|
void |
setData(DataType data)
Replaces the current value of "data" property.
|
void |
setMessage(String message)
Replaces the current value of "message" property.
|
String |
toString()
Returns a string representation of the object.
|
public static final String PROPERTY_NAME_CODE
code property.public static final String PROPERTY_NAME_MESSAGE
message property.public static final String PROPERTY_NAME_DATA
data property.public static final long MIN_CODE_PREDEFINED_ERROR
public static final long MAX_CODE_PREDEFINED_ERROR
public static final long CODE_PARSE_ERROR
public static final long CODE_INVALID_REQUEST
public static final long CODE_METHOD_NOT_FOUND
public static final long CODE_INVALID_PARAMS
public static final long CODE_INTERNAL_ERROR
public static final long MIN_CODE_IMPLEMENTATION_DEFINED_SERVER_ERROR
public static final long MAX_CODE_IMPLEMENTATION_DEFINED_SERVER_ERROR
public String toString()
public long getCode()
public void setCode(long code)
code - new value for "code" property.public String getMessage()
public void setMessage(String message)
message - new value for "message" property.public DataType getData()
Copyright © 2019 Jinahya, Inc.. All rights reserved.