Package org.fisco.bcos.sdk.amop.topic
Enum AmopRespError
java.lang.Object
java.lang.Enum<AmopRespError>
org.fisco.bcos.sdk.amop.topic.AmopRespError
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<AmopRespError>
,java.lang.constant.Constable
public enum AmopRespError extends java.lang.Enum<AmopRespError>
-
Nested Class Summary
-
Enum Constant Summary
Enum Constants Enum Constant Description MESSAGE_DECODE_ERROR
MESSAGE_SEND_EXCEPTION
MESSAGE_TIMEOUT
NO_AVAILABLE_SESSION
NODES_UNREACHABLE
Error code from node.REJECT_AMOP_REQ_FOR_OVER_BANDWIDTHLIMIT
-
Method Summary
Modifier and Type Method Description int
getError()
void
setError(int error)
static AmopRespError
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static AmopRespError[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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
-
getError
public int getError() -
setError
public void setError(int error)
-