Class FacebookAccessTokenErrorResponse

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.github.scribejava.core.exceptions.OAuthException
com.github.scribejava.apis.facebook.FacebookAccessTokenErrorResponse
All Implemented Interfaces:
java.io.Serializable

public class FacebookAccessTokenErrorResponse
extends OAuthException
non standard Facebook replace for OAuth2AccessTokenErrorResponse examples:
'{"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
  • Constructor Details

  • Method Details

    • getType

      public java.lang.String getType()
    • getCodeInt

      public int getCodeInt()
    • getFbtraceId

      public java.lang.String getFbtraceId()
    • getRawResponse

      @Deprecated public java.lang.String getRawResponse() throws java.io.IOException
      Deprecated.
      Returns:
      body of response
      Throws:
      java.io.IOException - IOException
    • getResponse

      public Response getResponse()
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class java.lang.Object
    • equals

      public boolean equals​(java.lang.Object obj)
      Overrides:
      equals in class java.lang.Object
    • toString

      public java.lang.String toString()
      Overrides:
      toString in class java.lang.Throwable