Package org.apache.airavata.model.error

Examples of org.apache.airavata.model.error.AiravataSystemException$AiravataSystemExceptionTupleSchemeFactory


      }
            gatewayProfile.updateGatewayResourceProfile(gatewayID, profile);
            return true;
        } catch (AppCatalogException e) {
            logger.error("Error while reading gateway compute resource preference...", e);
            AiravataSystemException exception = new AiravataSystemException();
            exception.setAiravataErrorType(AiravataErrorType.INTERNAL_ERROR);
            exception.setMessage("Error while updating gateway compute resource preference. More info : " + e.getMessage());
            throw exception;
        }
    }
View Full Code Here


    try {
      return getAiravataAPI().getWorkflowManager().getWorkflowTemplateIds();
    } catch (AiravataAPIInvocationException e) {
      String msg = "Error in retrieving all workflow template Ids.";
      log.error(msg, e);
      AiravataSystemException exception = new AiravataSystemException(AiravataErrorType.INTERNAL_ERROR);
            exception.setMessage(msg+" More info : " + e.getMessage());
            throw exception;
    }
  }
View Full Code Here

      workflow.setName(w.getName());
      return workflow;
    } catch (AiravataAPIInvocationException e) {
      String msg = "Error in retrieving the workflow "+workflowTemplateId+".";
      log.error(msg, e);
      AiravataSystemException exception = new AiravataSystemException(AiravataErrorType.INTERNAL_ERROR);
            exception.setMessage(msg+" More info : " + e.getMessage());
            throw exception;
    }
  }
View Full Code Here

    try {
      getAiravataAPI().getWorkflowManager().deleteWorkflow(workflowTemplateId);
    } catch (AiravataAPIInvocationException e) {
      String msg = "Error in deleting the workflow "+workflowTemplateId+".";
      log.error(msg, e);
      AiravataSystemException exception = new AiravataSystemException(AiravataErrorType.INTERNAL_ERROR);
            exception.setMessage(msg+" More info : " + e.getMessage());
            throw exception;
    }
  }
View Full Code Here

      getAiravataAPI().getWorkflowManager().addWorkflow(workflow.getGraph());
      return workflow.getName();
    } catch (AiravataAPIInvocationException e) {
      String msg = "Error in registering the workflow "+workflow.getName()+".";
      log.error(msg, e);
      AiravataSystemException exception = new AiravataSystemException(AiravataErrorType.INTERNAL_ERROR);
            exception.setMessage(msg+" More info : " + e.getMessage());
            throw exception;
    }
  }
View Full Code Here

    try {
      getAiravataAPI().getWorkflowManager().updateWorkflow(workflowTemplateId, workflow.getGraph());
    } catch (AiravataAPIInvocationException e) {
      String msg = "Error in updating the workflow "+workflow.getName()+".";
      log.error(msg, e);
      AiravataSystemException exception = new AiravataSystemException(AiravataErrorType.INTERNAL_ERROR);
            exception.setMessage(msg+" More info : " + e.getMessage());
            throw exception;
    }
  }
View Full Code Here

      airavataClientException.setParameter("No worklfow exists with the name "+workflowName);
      throw airavataClientException;
    } catch (AiravataAPIInvocationException e) {
      String msg = "Error in retrieving the workflow template id for "+workflowName+".";
      log.error(msg, e);
      AiravataSystemException exception = new AiravataSystemException(AiravataErrorType.INTERNAL_ERROR);
            exception.setMessage(msg+" More info : " + e.getMessage());
            throw exception;
    }
  }
View Full Code Here

    try {
      return getAiravataAPI().getWorkflowManager().isWorkflowExists(workflowName);
    } catch (AiravataAPIInvocationException e) {
      String msg = "Error in veriying the workflow for workflow name "+workflowName+".";
      log.error(msg, e);
      AiravataSystemException exception = new AiravataSystemException(AiravataErrorType.INTERNAL_ERROR);
            exception.setMessage(msg+" More info : " + e.getMessage());
            throw exception;
    }
  }
View Full Code Here

    public String createProject(Project project) throws InvalidRequestException, AiravataClientException, AiravataSystemException, TException {
        try {
            registry = RegistryFactory.getDefaultRegistry();
            if (!validateString(project.getName()) || !validateString(project.getOwner())){
                logger.error("Project name and owner cannot be empty...");
                throw new AiravataSystemException(AiravataErrorType.INTERNAL_ERROR);
            }
            return (String)registry.add(ParentDataType.PROJECT, project);
        } catch (RegistryException e) {
            logger.error("Error while creating the project", e);
            AiravataSystemException exception = new AiravataSystemException();
            exception.setAiravataErrorType(AiravataErrorType.INTERNAL_ERROR);
            exception.setMessage("Error while creating the project. More info : " + e.getMessage());
            throw exception;
        }
    }
View Full Code Here

                                                                               AiravataSystemException,
                                                                               ProjectNotFoundException,
                                                                               TException {
        if (!validateString(projectId) || !validateString(projectId)){
            logger.error("Project id cannot be empty...");
            AiravataSystemException exception = new AiravataSystemException();
            exception.setAiravataErrorType(AiravataErrorType.INTERNAL_ERROR);
            exception.setMessage("Project id cannot be empty...");
            throw exception;
        }
        try {
            registry = RegistryFactory.getDefaultRegistry();
            if (!registry.isExist(RegistryModelType.PROJECT, projectId)){
                logger.error("Project does not exist in the system. Please provide a valid project ID...");
                ProjectNotFoundException exception = new ProjectNotFoundException();
                exception.setMessage("Project does not exist in the system. Please provide a valid project ID...");
                throw exception;
            }
            registry.update(RegistryModelType.PROJECT, updatedProject, projectId);
        } catch (RegistryException e) {
            logger.error("Error while updating the project", e);
            AiravataSystemException exception = new AiravataSystemException();
            exception.setAiravataErrorType(AiravataErrorType.INTERNAL_ERROR);
            exception.setMessage("Error while updating the project. More info : " + e.getMessage());
            throw exception;
        }

    }
View Full Code Here

TOP

Related Classes of org.apache.airavata.model.error.AiravataSystemException$AiravataSystemExceptionTupleSchemeFactory

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.