Examples of RateLimitExceededException


Examples of com.google.gdata.util.RateLimitExceededException

                        message = "304 : The comment is either absent or incorrect";
                        throw new UpdateFailedException(message, true,
                                                        ApiKey.PermanentFailReason.unknownReason(message));
                    case 305:
                        // 305: Too many notifications are already set
                        throw new RateLimitExceededException();
                    case 342:
                        message = "342 : The signature (using Oauth) is invalid";
                        throw new UpdateFailedException( message, true,
                                                        ApiKey.PermanentFailReason.unknownReason(message));
                    case 343:
View Full Code Here

Examples of org.springframework.social.RateLimitExceededException

    } else if(errorType.equals("endpoint_error")) {
      throw new ResourceNotFoundException(message);
    } else if(errorType.equals("not_authorized")) {
      throw new InsufficientPermissionException(message);
    } else if(errorType.equals("rate_limit_exceeded")) {
      throw new RateLimitExceededException();
    } else if(errorType.equals("server_error")) {
      throw new InternalServerErrorException(message);
    }
  }
View Full Code Here

Examples of org.springframework.social.RateLimitExceededException

      } else if (message.contains("Invalid fbid") || message.contains("The parameter url is required")) {
        throw new OperationNotPermittedException(FACEBOOK, "Invalid object for this operation");
      } else if (message.contains("Duplicate status message") ) {
        throw new DuplicateStatusException(FACEBOOK, message);
      } else if (message.contains("Feed action request limit reached")) {
        throw new RateLimitExceededException(FACEBOOK);
      } else if (message.contains("The status you are trying to publish is a duplicate of, or too similar to, one that we recently posted to Twitter")) {
        throw new DuplicateStatusException(FACEBOOK, message);
      }
    } else if (statusCode == HttpStatus.UNAUTHORIZED) {
      if (message.startsWith("Error validating access token")) {
View Full Code Here

Examples of service.exception.RateLimitExceededException

            l = new ArrayList<Rating>();
            userRatings.put(subject, l);
        }

        if (l.size() + 1 > subject.getMaxRateCount()) {
            throw new RateLimitExceededException();
        }

        //add the rating for the subject
        l.add(new DefaulRating(subject, rater, student, grade));
    }
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.