Package org.springframework.social.facebook.api

Examples of org.springframework.social.facebook.api.NotAFriendException


      throw new ResourceNotFoundException(FACEBOOK, message);
    } else if (statusCode == HttpStatus.INTERNAL_SERVER_ERROR) {
      if (message.equals("User must be an owner of the friendlist")) { // watch for pattern in similar message in other resources
        throw new ResourceOwnershipException(message);
      } else if (message.equals("The member must be a friend of the current user.")) {
        throw new NotAFriendException(message);
      } else {
        throw new InternalServerErrorException(FACEBOOK, message);
      }
    }
  }
View Full Code Here

TOP

Related Classes of org.springframework.social.facebook.api.NotAFriendException

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.