public enum NedErrorCode extends Enum<NedErrorCode>
Enum Constant and Description |
---|
CONNECT_BAD_KEX_ALG |
CONNECT_BADAUTH |
CONNECT_BADKEY |
CONNECT_CONNECTION_REFUSED |
CONNECT_HOST_KEY_REJECTED |
CONNECT_HOSTUNREACH |
CONNECT_TIMEOUT |
CONNECTION_GONE |
IN_USE |
NED_EXTERNAL_ERROR |
NED_INTERNAL_ERROR |
Modifier and Type | Method and Description |
---|---|
int |
getValue()
Get the integer representation of the enum.
|
String |
toAtomString()
Get the string representation of the enum.
|
static NedErrorCode |
valueOf(int i)
Get the NED error code from the given integer.
|
static NedErrorCode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static NedErrorCode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final NedErrorCode CONNECT_CONNECTION_REFUSED
public static final NedErrorCode CONNECT_TIMEOUT
public static final NedErrorCode CONNECT_BADKEY
public static final NedErrorCode CONNECT_HOSTUNREACH
public static final NedErrorCode CONNECT_HOST_KEY_REJECTED
public static final NedErrorCode CONNECT_BADAUTH
public static final NedErrorCode NED_EXTERNAL_ERROR
public static final NedErrorCode IN_USE
public static final NedErrorCode CONNECTION_GONE
public static final NedErrorCode CONNECT_BAD_KEX_ALG
public static final NedErrorCode NED_INTERNAL_ERROR
public static NedErrorCode[] values()
for (NedErrorCode c : NedErrorCode.values()) System.out.println(c);
public static NedErrorCode valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic int getValue()
public static NedErrorCode valueOf(int i)
IllegalArgumentException
- if there is no corresponding
NED error codepublic String toAtomString()