Enum ErrorMessage.Error
- All Implemented Interfaces:
Serializable
,Comparable<ErrorMessage.Error>
,java.lang.constant.Constable
- Enclosing class:
- ErrorMessage
Specifies the type of the
ErrorMessage
.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescription -
Method Summary
Modifier and TypeMethodDescriptionstatic ErrorMessage.Error
static ErrorMessage.Error
Returns the enum constant of this type with the specified name.static ErrorMessage.Error[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
ERROR_IDENTITY_COLLISION
-
ERROR_WRONG_PUBLIC_KEY
-
ERROR_OTHER_NETWORK
-
ERROR_PROOF_OF_WORK_INVALID
-
ERROR_NOT_A_SUPER_PEER
-
ERROR_PEER_UNAVAILABLE
-
ERROR_UNEXPECTED_MESSAGE
-
ERROR_INITIAL_CHUNK_MISSING
-
ERROR_CHUNKED_MESSAGE_TIMEOUT
-
ERROR_CHUNKED_MESSAGE_PAYLOAD_TOO_LARGE
-
ERROR_CHUNKED_MESSAGE_INVALID_CHECKSUM
-
ERROR_INVALID_SIGNATURE
-
-
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:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
getDescription
- Returns:
- a human readable representation of the reason.
-
from
-