Package org.fisco.bcos.sdk.channel.model
Enum ChannelMessageError
java.lang.Object
java.lang.Enum<ChannelMessageError>
org.fisco.bcos.sdk.channel.model.ChannelMessageError
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<ChannelMessageError>
,java.lang.constant.Constable
public enum ChannelMessageError extends java.lang.Enum<ChannelMessageError>
-
Nested Class Summary
-
Enum Constant Summary
Enum Constants Enum Constant Description CONNECTION_INVALID
INTERNAL_MESSAGE_HANDLE_FAILED
MESSAGE_DECODE_ERROR
MESSAGE_SEND_EXCEPTION
MESSAGE_TIMEOUT
NODES_UNREACHABLE
REJECT_AMOP_REQ_FOR_OVER_BANDWIDTHLIMIT
-
Method Summary
Modifier and Type Method Description int
getError()
void
setError(int error)
static ChannelMessageError
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static ChannelMessageError[]
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)
-