DataType - data type parameterpublic static class ResponseObject.ErrorObject<DataType> extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
ResponseObject.ErrorObject.UnknownData
A class for representing error objects of unknown data types.
|
| Modifier and Type | Field and Description |
|---|---|
static long |
CODE_INTERNAL_ERROR |
static long |
CODE_INVALID_PARAMS |
static long |
CODE_INVALID_REQUEST |
static long |
CODE_METHOD_NOT_FOUND |
static long |
CODE_PARSE_ERROR |
static long |
MAX_CODE_FOR_IMPLEMENTATION_DEFINED_SERVER_ERRORS
The maximum value for codes reserved for implementation-defined server errors.
|
static long |
MAX_CODE_FOR_PREDEFINED_ERRORS
The maximum value for codes reserved for pre-defined errors.
|
static long |
MIN_CODE_FOR_IMPLEMENTATION_DEFINED_SERVER_ERRORS
The minimum value for codes reserved for implementation-defined server errors.
|
static long |
MIN_CODE_FOR_PREDEFINED_ERRORS
The minimum value for codes reserved for pre-defined errors.
|
static String |
PROPERTY_NAME_CODE
The property name for
code. |
static String |
PROPERTY_NAME_DATA
The property name for
data. |
static String |
PROPERTY_NAME_MESSAGE
The property name for
message. |
| 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.public static final String PROPERTY_NAME_MESSAGE
message.public static final String PROPERTY_NAME_DATA
data.public static final long MIN_CODE_FOR_PREDEFINED_ERRORS
public static final long MAX_CODE_FOR_PREDEFINED_ERRORS
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_FOR_IMPLEMENTATION_DEFINED_SERVER_ERRORS
public static final long MAX_CODE_FOR_IMPLEMENTATION_DEFINED_SERVER_ERRORS
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.