public static enum AuthorizationException.Reason extends Enum<AuthorizationException.Reason>
AuthorizationException
. When dealing with
an AuthorizationException
, use its reason to display an
appropriate message to the user.
Note: As of BellaDati 2.7.6, not all reasons are currently
supported by the server.Enum Constant and Description |
---|
BD_MOBILE_DISABLED
BellaDati Mobile only: BellaDati Mobile access isn't enabled for the
domain.
|
CONSUMER_KEY_UNKNOWN
Consumer key doesn't exist on the server.
|
CONSUMER_SECRET_INVALID
Consumer secret doesn't match the consumer key.
|
DOMAIN_EXPIRED
Domain license has expired.
|
OTHER
An uncategorized error occurred.
|
TIMESTAMP_REFUSED
Timestamp doesn't match the server's time.
|
TOKEN_EXPIRED
Request or access token has expired, requires re-authentication.
|
TOKEN_INVALID
Request or access token is invalid, may require re-authentication.
|
TOKEN_UNAUTHORIZED
Request token hasn't been authorized.
|
USER_ACCOUNT_LOCKED
xAuth only: credentials are correct but user is locked.
|
USER_CREDENTIALS_INVALID
xAuth only: username doesn't exist or password was incorrect.
|
USER_DOMAIN_MISMATCH
xAuth only: credentials are correct but user isn't in the domain.
|
X_AUTH_DISABLED
xAuth only: xAuth isn't enabled for the domain.
|
Modifier and Type | Method and Description |
---|---|
String |
getMessage()
Returns an English-language description of this reason.
|
static AuthorizationException.Reason |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static AuthorizationException.Reason[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AuthorizationException.Reason CONSUMER_KEY_UNKNOWN
public static final AuthorizationException.Reason CONSUMER_SECRET_INVALID
public static final AuthorizationException.Reason DOMAIN_EXPIRED
public static final AuthorizationException.Reason TOKEN_INVALID
public static final AuthorizationException.Reason TOKEN_UNAUTHORIZED
public static final AuthorizationException.Reason TOKEN_EXPIRED
public static final AuthorizationException.Reason TIMESTAMP_REFUSED
InvalidTimestampException
, cast to get accepted
timestamp range.public static final AuthorizationException.Reason USER_CREDENTIALS_INVALID
public static final AuthorizationException.Reason USER_ACCOUNT_LOCKED
public static final AuthorizationException.Reason USER_DOMAIN_MISMATCH
public static final AuthorizationException.Reason X_AUTH_DISABLED
public static final AuthorizationException.Reason BD_MOBILE_DISABLED
public static final AuthorizationException.Reason OTHER
public static AuthorizationException.Reason[] values()
for (AuthorizationException.Reason c : AuthorizationException.Reason.values()) System.out.println(c);
public static AuthorizationException.Reason 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 String getMessage()
Copyright © 2014. All rights reserved.