public enum OAuthApiExceptionCode extends Enum<OAuthApiExceptionCode>
OAuthApiException
Enum Constant and Description |
---|
ACCESS_TOKEN_ERROR
Error when we have invalid or revoked access token
|
DUPLICATE_OAUTH_PROVIDER_USERNAME
This error could happen during saving of user into GateIn identity database.
|
IO_ERROR
Generic IO error (for example network error)
|
OTHER_ERROR
Some other error
|
PERSISTENCE_ERROR
Error during DB operation (For example get/set/remove access token from DB)
|
SOCIAL_API_OBJECT_NOT_FOUND
Thrown when object of specified type wasn't found or couldn't be obtained and initialized
|
TOKEN_REVOCATION_FAILED
Error when revoking of accessToken of any provider failed
|
Modifier and Type | Method and Description |
---|---|
static OAuthApiExceptionCode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static OAuthApiExceptionCode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final OAuthApiExceptionCode DUPLICATE_OAUTH_PROVIDER_USERNAME
public static final OAuthApiExceptionCode ACCESS_TOKEN_ERROR
public static final OAuthApiExceptionCode IO_ERROR
public static final OAuthApiExceptionCode TOKEN_REVOCATION_FAILED
public static final OAuthApiExceptionCode PERSISTENCE_ERROR
public static final OAuthApiExceptionCode SOCIAL_API_OBJECT_NOT_FOUND
public static final OAuthApiExceptionCode OTHER_ERROR
public static OAuthApiExceptionCode[] values()
for (OAuthApiExceptionCode c : OAuthApiExceptionCode.values()) System.out.println(c);
public static OAuthApiExceptionCode 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 © 2013 JBoss by Red Hat. All Rights Reserved.