public static enum NetworkException.Reason extends Enum<NetworkException.Reason>
| Enum Constant and Description |
|---|
DISCONNECTED |
IO_ERROR |
NO_CONNECTIVITY |
| Modifier and Type | Method and Description |
|---|---|
static NetworkException.Reason |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static NetworkException.Reason[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final NetworkException.Reason IO_ERROR
public static final NetworkException.Reason DISCONNECTED
public static final NetworkException.Reason NO_CONNECTIVITY
public static NetworkException.Reason[] values()
for (NetworkException.Reason c : NetworkException.Reason.values()) System.out.println(c);
public static NetworkException.Reason 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 nullCopyright © 2019. All rights reserved.