Package com.github.scribejava.core.model
Class OAuth2AccessTokenErrorResponse
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.github.scribejava.core.exceptions.OAuthException
com.github.scribejava.core.model.OAuth2AccessTokenErrorResponse
- All Implemented Interfaces:
java.io.Serializable
public class OAuth2AccessTokenErrorResponse extends OAuthException
Representing "5.2. Error Response"
- See Also:
- Serialized Form
-
Constructor Summary
Constructors Constructor Description OAuth2AccessTokenErrorResponse(OAuth2Error error, java.lang.String errorDescription, java.net.URI errorUri, Response rawResponse)OAuth2AccessTokenErrorResponse(OAuth2Error error, java.lang.String errorDescription, java.net.URI errorUri, java.lang.String rawResponse)Deprecated. -
Method Summary
Modifier and Type Method Description OAuth2ErrorgetError()java.lang.StringgetErrorDescription()java.net.URIgetErrorUri()java.lang.StringgetRawResponse()Deprecated.usegetResponse()and thenResponse.getBody()ResponsegetResponse()Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Constructor Details
-
OAuth2AccessTokenErrorResponse
public OAuth2AccessTokenErrorResponse(OAuth2Error error, java.lang.String errorDescription, java.net.URI errorUri, Response rawResponse) throws java.io.IOException- Throws:
java.io.IOException
-
OAuth2AccessTokenErrorResponse
@Deprecated public OAuth2AccessTokenErrorResponse(OAuth2Error error, java.lang.String errorDescription, java.net.URI errorUri, java.lang.String rawResponse) throws java.io.IOException- Parameters:
error- errorerrorDescription- errorDescriptionerrorUri- errorUrirawResponse- rawResponse- Throws:
java.io.IOException- IOException
-
-
Method Details
-
getError
-
getErrorDescription
public java.lang.String getErrorDescription() -
getErrorUri
public java.net.URI getErrorUri() -
getRawResponse
@Deprecated public java.lang.String getRawResponse() throws java.io.IOExceptionDeprecated.usegetResponse()and thenResponse.getBody()- Returns:
- body of response
- Throws:
java.io.IOException- IOException
-
getResponse
-
OAuth2AccessTokenErrorResponse(com.github.scribejava.core.oauth2.OAuth2Error, java.lang.String, java.net.URI, com.github.scribejava.core.model.Response)