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 forOAuth2AccessTokenErrorResponseexamples:
'{"error_type": "OAuthException", "code": 400, "error_message": "Missing required field client_id"}'- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private intcodeprivate java.lang.StringerrorMessageprivate java.lang.StringerrorTypeprivate Responseresponseprivate static longserialVersionUID
-
Constructor Summary
Constructors Constructor Description InstagramAccessTokenErrorResponse(java.lang.String errorType, int code, java.lang.String errorMessage, Response response)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)intgetCode()java.lang.StringgetErrorMessage()java.lang.StringgetErrorType()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
-
errorType
private final java.lang.String errorType
-
code
private final int code
-
errorMessage
private final java.lang.String errorMessage
-
response
private final transient Response response
-
-
Constructor Detail
-
InstagramAccessTokenErrorResponse
public InstagramAccessTokenErrorResponse(java.lang.String errorType, int code, java.lang.String errorMessage, Response response) throws java.io.IOException- Throws:
java.io.IOException
-
-
Method Detail
-
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:
equalsin classOAuthResponseException
-
hashCode
public int hashCode()
- Overrides:
hashCodein classOAuthResponseException
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Throwable
-
-