public enum ResponseCodeEnum extends Enum<ResponseCodeEnum>
| Enum Constant and Description |
|---|
FORBIDDEN_REQUEST |
INVALID_USER |
INVOCATION_ERROR |
INVOCATION_TIMEOUT |
PARAM_ERROR |
SERVER_ERROR |
SUCCESS |
| Modifier and Type | Method and Description |
|---|---|
String |
getCode() |
String |
getMessage() |
static ResponseCodeEnum |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ResponseCodeEnum[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ResponseCodeEnum SUCCESS
public static final ResponseCodeEnum PARAM_ERROR
public static final ResponseCodeEnum INVALID_USER
public static final ResponseCodeEnum FORBIDDEN_REQUEST
public static final ResponseCodeEnum SERVER_ERROR
public static final ResponseCodeEnum INVOCATION_TIMEOUT
public static final ResponseCodeEnum INVOCATION_ERROR
public static ResponseCodeEnum[] values()
for (ResponseCodeEnum c : ResponseCodeEnum.values()) System.out.println(c);
public static ResponseCodeEnum valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic String getCode()
public String getMessage()
Copyright © 2020. All rights reserved.