public static enum ConverterNetworkProtocol.Status extends Enum<ConverterNetworkProtocol.Status>
| Enum Constant and Description |
|---|
CANCEL |
CONVERTER_ERROR |
FORMAT_ERROR |
INPUT_ERROR |
OK |
TIMEOUT |
UNKNOWN |
| Modifier and Type | Method and Description |
|---|---|
static ConverterNetworkProtocol.Status |
describe(Exception e) |
static ConverterNetworkProtocol.Status |
from(int statusCode) |
int |
getStatusCode() |
boolean |
resolve() |
String |
toString() |
static ConverterNetworkProtocol.Status |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ConverterNetworkProtocol.Status[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ConverterNetworkProtocol.Status OK
public static final ConverterNetworkProtocol.Status CANCEL
public static final ConverterNetworkProtocol.Status TIMEOUT
public static final ConverterNetworkProtocol.Status CONVERTER_ERROR
public static final ConverterNetworkProtocol.Status INPUT_ERROR
public static final ConverterNetworkProtocol.Status FORMAT_ERROR
public static final ConverterNetworkProtocol.Status UNKNOWN
public static ConverterNetworkProtocol.Status[] values()
for (ConverterNetworkProtocol.Status c : ConverterNetworkProtocol.Status.values()) System.out.println(c);
public static ConverterNetworkProtocol.Status 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 static ConverterNetworkProtocol.Status from(int statusCode)
public static ConverterNetworkProtocol.Status describe(Exception e)
public int getStatusCode()
public boolean resolve()
public String toString()
toString in class Enum<ConverterNetworkProtocol.Status>Copyright © 2013–2020. All rights reserved.