public static enum Chaincode.Response.Status extends java.lang.Enum<Chaincode.Response.Status>
Chaincode.Response
status enum.Enum Constant and Description |
---|
ERROR_THRESHOLD |
INTERNAL_SERVER_ERROR |
SUCCESS |
Modifier and Type | Method and Description |
---|---|
static Chaincode.Response.Status |
forCode(int code) |
int |
getCode() |
static boolean |
hasStatusForCode(int code) |
static Chaincode.Response.Status |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Chaincode.Response.Status[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Chaincode.Response.Status SUCCESS
public static final Chaincode.Response.Status ERROR_THRESHOLD
public static final Chaincode.Response.Status INTERNAL_SERVER_ERROR
public static Chaincode.Response.Status[] values()
for (Chaincode.Response.Status c : Chaincode.Response.Status.values()) System.out.println(c);
public static Chaincode.Response.Status valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic int getCode()
public static Chaincode.Response.Status forCode(int code)
public static boolean hasStatusForCode(int code)