public static enum OpenFailException.Reason extends java.lang.Enum<OpenFailException.Reason>
Enum Constant and Description |
---|
ADMINISTRATIVELY_PROHIBITED |
CONNECT_FAILED |
RESOURCE_SHORTAGE |
UNKNOWN |
UNKNOWN_CHANNEL_TYPE |
Modifier and Type | Method and Description |
---|---|
static OpenFailException.Reason |
fromInt(int code) |
int |
getCode() |
static OpenFailException.Reason |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static OpenFailException.Reason[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final OpenFailException.Reason UNKNOWN
public static final OpenFailException.Reason ADMINISTRATIVELY_PROHIBITED
public static final OpenFailException.Reason CONNECT_FAILED
public static final OpenFailException.Reason UNKNOWN_CHANNEL_TYPE
public static final OpenFailException.Reason RESOURCE_SHORTAGE
public static OpenFailException.Reason[] values()
for (OpenFailException.Reason c : OpenFailException.Reason.values()) System.out.println(c);
public static OpenFailException.Reason valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic static OpenFailException.Reason fromInt(int code)
public int getCode()