public enum SocialExceptionCode extends Enum<SocialExceptionCode>
| Enum Constant and Description |
|---|
ACCESS_TOKEN_ERROR
Error when we have invalid or revoked access token
|
GOOGLE_ERROR
Some error during Google processing
|
INVALID_CLIENT
Error when invalid clientID or clientSecret is used
|
INVALID_STATE
Error when state parameter from request parameter, which is sent from Social network, is not equals to previously sent state
|
IO_ERROR
Generic IO error (for example network error)
|
TOKEN_REVOCATION_FAILED
Error when revoking of accessToken of any social netowrk failed
|
UNKNOWN_ERROR
Unspecified GateIn+OAuth error
|
USER_DENIED_SCOPE
Error when OAuth2 flow failed because user denied to permit privileges (scope) for Social network
|
| Modifier and Type | Method and Description |
|---|---|
static SocialExceptionCode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SocialExceptionCode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SocialExceptionCode UNKNOWN_ERROR
public static final SocialExceptionCode GOOGLE_ERROR
public static final SocialExceptionCode ACCESS_TOKEN_ERROR
public static final SocialExceptionCode IO_ERROR
public static final SocialExceptionCode INVALID_STATE
public static final SocialExceptionCode TOKEN_REVOCATION_FAILED
public static final SocialExceptionCode USER_DENIED_SCOPE
public static final SocialExceptionCode INVALID_CLIENT
public static SocialExceptionCode[] values()
for (SocialExceptionCode c : SocialExceptionCode.values()) System.out.println(c);
public static SocialExceptionCode 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 © 2014 JBoss Inc.. All Rights Reserved.