| Modifier and Type | Class and Description |
|---|---|
static class |
Error.ErrorType
The category of error
|
| Modifier and Type | Method and Description |
|---|---|
static Error |
fromCode(int code)
Get the error for a specific error code
|
int |
getErrorCode()
Get the unique code for the error
|
Error.ErrorType |
getErrorType()
Get the type of the error
|
int |
getMsgResourceId()
Get the Android Resource ID for the error message
|
int |
getRecoveryResourceId()
Get the Android Resource ID for the error recovery message
|
java.lang.String |
toString(Context context)
Get the error in a pretty string format
|
static Error |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Error[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Error ERROR_LICENSE_OVER_CAPACITY
public static final Error ERROR_LICENSE_NOT_FOUND
public static final Error ERROR_LICENSE_EMAIL_NOT_ALLOWABLE
public static final Error ERROR_LICENSE_EXPIRED
public static final Error ERROR_LICENSE_GENERIC
public static final Error ERROR_LICENSE_NO_CONNECTIVITY
public static final Error ERROR_AUTH_WEARABLE_FAILED
public static final Error ERROR_AUTH_PASSWORD_FAILED
public static final Error ERROR_AUTH_OLD_PASSWORD_FAILED
public static final Error ERROR_AUTH_CANCELLED
public static final Error ERROR_WEARABLE_NOT_CONNECTED
public static final Error ERROR_SPECIFIC_WEARABLE_NOT_CONNECTED
public static final Error ERROR_WEARABLE_NACKED
public static final Error ERROR_WEARABLE_DENIED
public static final Error ERROR_WEARABLE_VERIFY_FAILED
public static final Error ERROR_WEARABLE_CRYPTO_FAILED
public static final Error ERROR_WEARABLE_APP_NOT_INSTALLED
public static final Error ERROR_SPECIFIC_WEARABLE_APP_NOT_INSTALLED
public static final Error ERROR_WEARABLE_MESSAGE_TIMEOUT
public static final Error ERROR_WEARABLE_OPEN_TIMEOUT
public static final Error ERROR_WEARABLE_PROV_TIMEOUT
public static final Error ERROR_WEARABLE_RPRV_TIMEOUT
public static final Error ERROR_WEARABLE_BT_TIMEOUT
public static final Error ERROR_WEARABLE_PROVISION_NOT_VALID
public static final Error ERROR_WEARABLE_AUTH_NOT_VALID
public static final Error ERROR_LICENSE_INVALID_TOKEN
public static final Error ERROR_HANDHELD_CAMERA_MISSING
public static final Error ERROR_UNKNOWN
public static Error[] values()
for (Error c : Error.values()) System.out.println(c);
public static Error 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 Error fromCode(int code)
code - The specified error codeErrorpublic Error.ErrorType getErrorType()
public int getErrorCode()
public int getMsgResourceId()
public int getRecoveryResourceId()
public java.lang.String toString(Context context)
context - The application context