Examples of EnMeFailSendSocialTweetException


Examples of org.encuestame.core.exception.EnMeFailSendSocialTweetException

            throw new EnMeExpcetion(e);
        }
        log.debug("Tweet Text Generated: "+tweetQuestionText);
        log.debug("Tweet Text Generated: "+tweetQuestionText.length());
        if (tweetQuestionText.length() > SocialUtils.TWITTER_LIMIT) {
            throw new EnMeFailSendSocialTweetException("tweet exceed the maximun allowed");
        }
        return tweetQuestionText;
    }
View Full Code Here

Examples of org.encuestame.core.exception.EnMeFailSendSocialTweetException

             publishedStatus.setSocialAccount(socialAccount);
             try {
                 log.debug("publishTweetPoll Publishing... "+tweetText.length());
                 final TweetPublishedMetadata metadata = publicTweetPoll(tweetText, socialAccount, hashTags);
                 if (metadata == null || metadata.getTweetId() == null) {
                     throw new EnMeFailSendSocialTweetException("status not valid");
                 }//getMessageProperties(propertieId)
                 if (metadata.getTweetId() == null) {
                     log.warn("tweet id is empty");
                 }
                 //store original tweet id.
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.