Package dropbox.client

Examples of dropbox.client.InvalidTokenException


        String err = getError(resp);
        if (Integer.valueOf(401).equals(resp.getStatus())) {
            Logger.error("Box: Failed to fetch metadata because auth token has been revoked. Id: %s Error: %s",
                         id, err);
            throw new InvalidTokenException("Box auth token has been revoked.");
        }

        Logger.error("Box: Failed to fetch metadata. Id: %s Error: %s",
                     id, err);
        return null;
View Full Code Here


    private BoxItem getItem(String path) throws InvalidTokenException {
        try {
            NullableItem ni = itemCache.get(RuleUtils.normalize(path));
            if (ni == INVALID_TOKEN_ITEM) {
                throw new InvalidTokenException("Box auth token has been revoked.");
            }
            return ni.item;
        } catch (ExecutionException e) {
            Logger.error(e, "Cannot load %s", path);
            return null;
View Full Code Here

TOP

Related Classes of dropbox.client.InvalidTokenException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.