Enum Constant and Description |
---|
ALREADY_AUTHENTICATED
The application has already been authenticated with a different application name.
|
AUTHENTICATION_ALREADY_IN_PROGRESS
An attempt to authenticate has been made while a previous attempt is still in progress.
|
CONNECTION_TIMEOUT
The server connection timed out.
|
INVALID_SERVER_RESPONSE
The server has returned an invalid response to a request made by the SDK.
|
NO_INTERNET
There is no available network connection.
|
NOT_AUTHENTICATED
The API call is not correctly authenticated.
|
SYNC_ALREADY_IN_PROGRESS
An attempt to synchronise has been made while a previous attempt is still in progress.
|
UNEXPECTED_INTERNAL_ERROR
An internal error has occurred.
|
UNKNOWN_APP_NAME
The application name passed to the API is not known by TapPoint.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getErrorMessage()
Gets the error message.
|
static ApiError |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ApiError[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ApiError NO_INTERNET
public static final ApiError CONNECTION_TIMEOUT
public static final ApiError UNKNOWN_APP_NAME
public static final ApiError NOT_AUTHENTICATED
public static final ApiError ALREADY_AUTHENTICATED
public static final ApiError AUTHENTICATION_ALREADY_IN_PROGRESS
public static final ApiError INVALID_SERVER_RESPONSE
public static final ApiError SYNC_ALREADY_IN_PROGRESS
public static final ApiError UNEXPECTED_INTERNAL_ERROR
public static ApiError[] values()
for (ApiError c : ApiError.values()) System.out.println(c);
public static ApiError 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 java.lang.String getErrorMessage()