Class FacebookAccessTokenErrorResponse
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- com.github.scribejava.core.exceptions.OAuthException
-
- com.github.scribejava.core.model.OAuthResponseException
-
- com.github.scribejava.apis.facebook.FacebookAccessTokenErrorResponse
-
- All Implemented Interfaces:
java.io.Serializable
public class FacebookAccessTokenErrorResponse extends OAuthResponseException
non standard Facebook replace forOAuth2AccessTokenErrorResponseexamples:
'{"error":{"message":"This authorization code has been used.","type":"OAuthException","code":100,"fbtrace_id":"DtxvtGRaxbB"}}'
'{"error":{"message":"Error validating application. Invalid application ID.","type":"OAuthException","code":101,"fbtrace_id":"CvDR+X4WWIx"}}'- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private intcodeIntprivate java.lang.StringerrorMessageprivate java.lang.StringfbtraceIdprivate static longserialVersionUIDprivate java.lang.Stringtype
-
Constructor Summary
Constructors Constructor Description FacebookAccessTokenErrorResponse(java.lang.String errorMessage, java.lang.String type, int code, java.lang.String fbtraceId, Response response)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)intgetCodeInt()java.lang.StringgetErrorMessage()java.lang.StringgetFbtraceId()java.lang.StringgetType()inthashCode()java.lang.StringtoString()-
Methods inherited from class com.github.scribejava.core.model.OAuthResponseException
getResponse
-
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
errorMessage
private final java.lang.String errorMessage
-
type
private final java.lang.String type
-
codeInt
private final int codeInt
-
fbtraceId
private final java.lang.String fbtraceId
-
-
Constructor Detail
-
FacebookAccessTokenErrorResponse
public FacebookAccessTokenErrorResponse(java.lang.String errorMessage, java.lang.String type, int code, java.lang.String fbtraceId, Response response) throws java.io.IOException- Throws:
java.io.IOException
-
-
Method Detail
-
getErrorMessage
public java.lang.String getErrorMessage()
-
getType
public java.lang.String getType()
-
getCodeInt
public int getCodeInt()
-
getFbtraceId
public java.lang.String getFbtraceId()
-
hashCode
public int hashCode()
- Overrides:
hashCodein classOAuthResponseException
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classOAuthResponseException
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Throwable
-
-