Examples of OperationNotPermittedException


Examples of com.amazonaws.services.simpleworkflow.model.OperationNotPermittedException

        // marshaller understands.
        String errorCode = parseErrorCode(json);
        if (errorCode == null || !errorCode.equals("OperationNotPermittedFault"))
            return null;

        OperationNotPermittedException e = (OperationNotPermittedException)super.unmarshall(json);
       
       
        return e;
    }
View Full Code Here

Examples of com.amazonaws.services.simpleworkflow.model.OperationNotPermittedException

        // marshaller understands.
        String errorCode = parseErrorCode(json);
        if (errorCode == null || !errorCode.equals("OperationNotPermittedFault"))
            return null;

        OperationNotPermittedException e = (OperationNotPermittedException)super.unmarshall(json);

        return e;
    }
View Full Code Here

Examples of com.amazonaws.services.simpleworkflow.model.OperationNotPermittedException

        }
    }

    @Override
    public AmazonServiceException unmarshall(JSONObject json) throws Exception {
        OperationNotPermittedException e = (OperationNotPermittedException)super.unmarshall(json);
        e.setErrorCode("OperationNotPermittedFault");

        return e;
    }
View Full Code Here

Examples of com.amazonaws.services.simpleworkflow.model.OperationNotPermittedException

        // marshaller understands.
        String errorCode = parseErrorCode(json);
        if (errorCode == null || !errorCode.equals("OperationNotPermittedFault"))
            return null;

        OperationNotPermittedException e = (OperationNotPermittedException)super.unmarshall(json);
       
       
        return e;
    }
View Full Code Here

Examples of com.amazonaws.services.simpleworkflow.model.OperationNotPermittedException

        // marshaller understands.
        String errorCode = parseErrorCode(json);
        if (errorCode == null || !errorCode.equals("OperationNotPermittedFault"))
            return null;

        OperationNotPermittedException e = (OperationNotPermittedException)super.unmarshall(json);
       
       
       
        return e;
    }
View Full Code Here

Examples of com.amazonaws.services.simpleworkflow.model.OperationNotPermittedException

        // marshaller understands.
        String errorCode = parseErrorCode(json);
        if (errorCode == null || !errorCode.equals("OperationNotPermittedFault"))
            return null;

        OperationNotPermittedException e = (OperationNotPermittedException)super.unmarshall(json);

        return e;
    }
View Full Code Here

Examples of org.impalaframework.exception.OperationNotPermittedException

     */
  protected final void isReloadPermitted(ModuleDefinition definition) {
    if (definition != null) {
   
      if (!definition.isReloadable() && enforceReloadability) {
          throw new OperationNotPermittedException("Cannot reload module as module is marked as non-reloadable");
        }
    }
  }
View Full Code Here

Examples of org.springframework.social.OperationNotPermittedException

    }


    public void updateStatus(Alfresco alfresco, String status)
    {
        throw new OperationNotPermittedException("updateStatus not implemented.");

    }
View Full Code Here

Examples of org.springframework.social.OperationNotPermittedException

    public AlfrescoList<Metadata> networkOptions(String network)
        throws JsonParseException,
            JsonMappingException,
            IOException
    {
        throw new OperationNotPermittedException("HTTP OPTIONS Not implemented yet");
        // Map<String, String> vars = Collections.singletonMap(TemplateParams.NETWORK, network);
        // ResponseEntity<String> response =
        // getRestTemplate().exchange("https://api.alfresco.com/{network}/public/alfresco/versions/1/nodes", HttpMethod.OPTIONS,
        // null, String.class, vars);
        // System.out.println("Network Options: " + response.getBody());
View Full Code Here

Examples of org.springframework.social.OperationNotPermittedException

      } else if (message.startsWith("Error validating access token")) {
        handleInvalidAccessToken(message);
      } else if (message.equals("Invalid access token signature.")) { // Access token that fails signature validation
        throw new InvalidAuthorizationException(FACEBOOK, message);
      } else if (message.contains("Application does not have the capability to make this API call.") || message.contains("App must be on whitelist")) {
        throw new OperationNotPermittedException(FACEBOOK, message);
      } 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")) {
        handleInvalidAccessToken(message);
      } else if (message.equals("Invalid OAuth access token.")) {  // Bogus access token
        throw new InvalidAuthorizationException(FACEBOOK, message);
      } else if (message.startsWith("Error validating application.")) { // Access token with incorrect app ID
        throw new InvalidAuthorizationException(FACEBOOK, message);
      }
      throw new NotAuthorizedException(FACEBOOK, message);
    } else if (statusCode == HttpStatus.FORBIDDEN) {
      if (message.contains("Requires extended permission")) {
        throw new InsufficientPermissionException(FACEBOOK, message.split(": ")[1]);
      } else if (message.contains("Permissions error")) {
        throw new InsufficientPermissionException(FACEBOOK);
      } else if (message.contains("The user hasn't authorized the application to perform this action")) {
        throw new InsufficientPermissionException(FACEBOOK);
      } else {
        throw new OperationNotPermittedException(FACEBOOK, message);
      }
    } else if (statusCode == HttpStatus.NOT_FOUND) {
      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
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.