public enum RPCErrorCode extends Enum<RPCErrorCode>
Enum Constant and Description |
---|
EXCEPTION |
INVALID_PROCEDURE_CALL |
METHOD_NOT_FOUND |
MISSING_ID |
MISSING_METHOD |
PARAMETERS_MISMATCH |
SMD_DISABLED |
Modifier and Type | Method and Description |
---|---|
int |
code() |
String |
message() |
static RPCErrorCode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static RPCErrorCode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final RPCErrorCode MISSING_METHOD
public static final RPCErrorCode MISSING_ID
public static final RPCErrorCode INVALID_PROCEDURE_CALL
public static final RPCErrorCode METHOD_NOT_FOUND
public static final RPCErrorCode PARAMETERS_MISMATCH
public static final RPCErrorCode EXCEPTION
public static final RPCErrorCode SMD_DISABLED
public static RPCErrorCode[] values()
for (RPCErrorCode c : RPCErrorCode.values()) System.out.println(c);
public static RPCErrorCode 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 int code()
public String message()
Copyright © 2000–2020 Apache Software Foundation. All rights reserved.