public static enum RetrofitError.Kind extends Enum<RetrofitError.Kind>
RetrofitError
.Enum Constant and Description |
---|
CONVERSION
An exception was thrown while (de)serializing a body.
|
HTTP
A non-200 HTTP status code was received from the server.
|
NETWORK
An
IOException occurred while communicating to the server. |
UNEXPECTED
An internal error occurred while attempting to execute a request.
|
Modifier and Type | Method and Description |
---|---|
static RetrofitError.Kind |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static RetrofitError.Kind[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final RetrofitError.Kind NETWORK
IOException
occurred while communicating to the server.public static final RetrofitError.Kind CONVERSION
public static final RetrofitError.Kind HTTP
public static final RetrofitError.Kind UNEXPECTED
public static RetrofitError.Kind[] values()
for (RetrofitError.Kind c : RetrofitError.Kind.values()) System.out.println(c);
public static RetrofitError.Kind 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 © 2015 Square, Inc.. All Rights Reserved.