Class InstagramAccessTokenErrorResponse

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.instagram.InstagramAccessTokenErrorResponse
All Implemented Interfaces:
java.io.Serializable

public class InstagramAccessTokenErrorResponse
extends OAuthResponseException
non standard Instagram replace for OAuth2AccessTokenErrorResponse examples:
'{"error_type": "OAuthException", "code": 400, "error_message": "Missing required field client_id"}'
See Also:
Serialized Form
  • Constructor Summary

    Constructors
    Constructor Description
    InstagramAccessTokenErrorResponse​(java.lang.String errorType, int code, java.lang.String errorMessage, Response response)  
  • Method Summary

    Modifier and Type Method Description
    boolean equals​(java.lang.Object obj)  
    int getCode()  
    java.lang.String getErrorMessage()  
    java.lang.String getErrorType()  
    int hashCode()  
    java.lang.String toString()  

    Methods inherited from class com.github.scribejava.core.model.OAuthResponseException

    getResponse

    Methods inherited from class java.lang.Throwable

    addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • InstagramAccessTokenErrorResponse

      public InstagramAccessTokenErrorResponse​(java.lang.String errorType, int code, java.lang.String errorMessage, Response response) throws java.io.IOException
      Throws:
      java.io.IOException
  • Method Details

    • getErrorType

      public java.lang.String getErrorType()
    • getCode

      public int getCode()
    • getErrorMessage

      public java.lang.String getErrorMessage()
    • equals

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

      public int hashCode()
      Overrides:
      hashCode in class OAuthResponseException
    • toString

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