Enum ConnectionExceptionMessage.Error
- java.lang.Object
-
- java.lang.Enum<ConnectionExceptionMessage.Error>
-
- org.drasyl.peer.connection.message.ConnectionExceptionMessage.Error
-
- All Implemented Interfaces:
Serializable
,Comparable<ConnectionExceptionMessage.Error>
- Enclosing class:
- ConnectionExceptionMessage
public static enum ConnectionExceptionMessage.Error extends Enum<ConnectionExceptionMessage.Error>
Specifies the type of theConnectionExceptionMessage
.
-
-
Enum Constant Summary
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ConnectionExceptionMessage.Error
from(String description)
String
getDescription()
static ConnectionExceptionMessage.Error
valueOf(String name)
Returns the enum constant of this type with the specified name.static ConnectionExceptionMessage.Error[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
CONNECTION_ERROR_INITIALIZATION
public static final ConnectionExceptionMessage.Error CONNECTION_ERROR_INITIALIZATION
-
CONNECTION_ERROR_INTERNAL
public static final ConnectionExceptionMessage.Error CONNECTION_ERROR_INTERNAL
-
CONNECTION_ERROR_HANDSHAKE_TIMEOUT
public static final ConnectionExceptionMessage.Error CONNECTION_ERROR_HANDSHAKE_TIMEOUT
-
CONNECTION_ERROR_HANDSHAKE_REJECTED
public static final ConnectionExceptionMessage.Error CONNECTION_ERROR_HANDSHAKE_REJECTED
-
CONNECTION_ERROR_PING_PONG
public static final ConnectionExceptionMessage.Error CONNECTION_ERROR_PING_PONG
-
CONNECTION_ERROR_IDENTITY_COLLISION
public static final ConnectionExceptionMessage.Error CONNECTION_ERROR_IDENTITY_COLLISION
-
CONNECTION_ERROR_WRONG_PUBLIC_KEY
public static final ConnectionExceptionMessage.Error CONNECTION_ERROR_WRONG_PUBLIC_KEY
-
CONNECTION_ERROR_PROOF_OF_WORK_INVALID
public static final ConnectionExceptionMessage.Error CONNECTION_ERROR_PROOF_OF_WORK_INVALID
-
CONNECTION_ERROR_SUPER_PEER_DISCONNECTED
public static final ConnectionExceptionMessage.Error CONNECTION_ERROR_SUPER_PEER_DISCONNECTED
-
-
Method Detail
-
values
public static ConnectionExceptionMessage.Error[] 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 (ConnectionExceptionMessage.Error c : ConnectionExceptionMessage.Error.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ConnectionExceptionMessage.Error valueOf(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:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
getDescription
public String getDescription()
- Returns:
- a human readable representation of the reason.
-
from
public static ConnectionExceptionMessage.Error from(String description)
-
-