public static enum AccountManagerException.CodeDescription extends Enum<AccountManagerException.CodeDescription> implements CodeDescription
Enum Constant and Description |
---|
ACCOUNT_DOES_NOT_EXIST_ERROR
Returned when trying to use (authenticate, change password, remove) and account that does not exist
|
ACCOUNT_EXISTS_ERROR
Returned when trying to create an account that already exists
|
ACCOUNT_NOT_OPEN_ERROR
Returned when calling 'openAccount', while an account is already open or 'removeAccount' for currently open account.
|
ACCOUNT_OPEN_ERROR
Returned when calling 'openAccount', while an account is already open or 'removeAccount' for currently open account.
|
FIELD_DOES_NOT_EXIST_ERROR
Returned when trying to remove non-existent custom data field.
|
INTERNAL_ERROR |
INVALID_CREDENTIALS_ERROR
Returned if openAccount fails with INVALID_CREDENTIALS, old password screen should appear
|
Modifier and Type | Method and Description |
---|---|
int |
getCode() |
String |
getDescription() |
static AccountManagerException.CodeDescription |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static AccountManagerException.CodeDescription[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AccountManagerException.CodeDescription INTERNAL_ERROR
public static final AccountManagerException.CodeDescription INVALID_CREDENTIALS_ERROR
public static final AccountManagerException.CodeDescription ACCOUNT_OPEN_ERROR
public static final AccountManagerException.CodeDescription ACCOUNT_EXISTS_ERROR
public static final AccountManagerException.CodeDescription ACCOUNT_DOES_NOT_EXIST_ERROR
public static final AccountManagerException.CodeDescription FIELD_DOES_NOT_EXIST_ERROR
public static final AccountManagerException.CodeDescription ACCOUNT_NOT_OPEN_ERROR
public static AccountManagerException.CodeDescription[] values()
for (AccountManagerException.CodeDescription c : AccountManagerException.CodeDescription.values()) System.out.println(c);
public static AccountManagerException.CodeDescription 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 int getCode()
getCode
in interface CodeDescription
public String getDescription()
getDescription
in interface CodeDescription