Package org.hyperledger.fabric.shim
Enum Chaincode.Response.Status
- java.lang.Object
-
- java.lang.Enum<Chaincode.Response.Status>
-
- org.hyperledger.fabric.shim.Chaincode.Response.Status
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<Chaincode.Response.Status>
- Enclosing class:
- Chaincode.Response
public static enum Chaincode.Response.Status extends java.lang.Enum<Chaincode.Response.Status>
Chaincode.Response
status enum.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ERROR_THRESHOLD
INTERNAL_SERVER_ERROR
SUCCESS
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method 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.
-
-
-
Enum Constant Detail
-
SUCCESS
public static final Chaincode.Response.Status SUCCESS
-
ERROR_THRESHOLD
public static final Chaincode.Response.Status ERROR_THRESHOLD
-
INTERNAL_SERVER_ERROR
public static final Chaincode.Response.Status INTERNAL_SERVER_ERROR
-
-
Method Detail
-
values
public static Chaincode.Response.Status[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (Chaincode.Response.Status c : Chaincode.Response.Status.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Chaincode.Response.Status valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
getCode
public int getCode()
-
forCode
public static Chaincode.Response.Status forCode(int code)
-
hasStatusForCode
public static boolean hasStatusForCode(int code)
-
-