|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<JsonServiceError>
org.stefaniuk.json.service.JsonServiceError
public enum JsonServiceError
JSON service error.
This class provides definition of JSON-RPC error codes.
Enum Constant Summary | |
---|---|
CUSTOM_ERROR
|
|
INTERNAL_ERROR
|
|
INVALID_PARAMS
|
|
INVALID_REQUEST
|
|
METHOD_NOT_FOUND
|
|
PARSE_ERROR
|
|
SERVER_ERROR
|
Method Summary | |
---|---|
int |
getCode()
Returns error code. |
String |
getMessage()
Returns error message. |
void |
setMessage(String message)
Sets error message. |
static JsonServiceError |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static JsonServiceError[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final JsonServiceError PARSE_ERROR
public static final JsonServiceError INTERNAL_ERROR
public static final JsonServiceError INVALID_PARAMS
public static final JsonServiceError METHOD_NOT_FOUND
public static final JsonServiceError INVALID_REQUEST
public static final JsonServiceError SERVER_ERROR
public static final JsonServiceError CUSTOM_ERROR
Method Detail |
---|
public static JsonServiceError[] values()
for (JsonServiceError c : JsonServiceError.values()) System.out.println(c);
public static JsonServiceError valueOf(String name)
name
- the name of the enum constant to be returned.
IllegalArgumentException
- if this enum type has no constant
with the specified name
NullPointerException
- if the argument is nullpublic int getCode()
public String getMessage()
public void setMessage(String message)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |