com.dropbox.core.InvalidAccessTokenException Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of dropbox-core-sdk Show documentation
Show all versions of dropbox-core-sdk Show documentation
Official Java client library for the Dropbox API.
package com.dropbox.core;
import com.dropbox.core.v2.auth.AuthError;
/**
* Gets thrown when the access token you're using to make API calls is invalid.
*
*
* A more typical situation is that your access token was valid, but the
* user has since "unlinked" your application via the Dropbox website
* (http://www.dropbox.com/account#applications).
* When a user unlinks your application, your access tokens for that user become
* invalid. You can re-run the authorization process to obtain a new access token.
*
*/
public class InvalidAccessTokenException extends DbxException {
private static final long serialVersionUID = 0;
private AuthError authError;
public InvalidAccessTokenException(String requestId, String message, AuthError authError) {
super(requestId, message);
this.authError = authError;
}
public AuthError getAuthError() {
return this.authError;
}
}