Package org.brickred.socialauth.exception

Examples of org.brickred.socialauth.exception.AccessTokenExpireException


          LOG.debug("Error message :: " + message);
          if (message != null) {
            message = message.toLowerCase();
          }
          if (message.contains("session has expired")) {
            throw new AccessTokenExpireException();
          } else {
            throw new SocialAuthException("Message :: " + message);
          }
        } else {
          throw new SocialAuthException("Message :: " + respStr);
        }

      } catch (Exception e) {
        if (AccessTokenExpireException.class.isInstance(e)) {
          new AccessTokenExpireException();
        } else if (SocialAuthException.class.isInstance(e)) {
          throw new SocialAuthException(e.getMessage());
        }
      }
    }
View Full Code Here

TOP

Related Classes of org.brickred.socialauth.exception.AccessTokenExpireException

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.