Examples of RedmineStatusException


Examples of net.sf.redmine_mylyn.core.RedmineStatusException

  @Override
  public void updateConfiguration(IProgressMonitor monitor) throws RedmineStatusException {
    try {
      apiClient.updateConfiguration(monitor);
    } catch (RedmineApiErrorException e) {
      throw new RedmineStatusException(e, Messages.ERRMSG_CONFIGURATION_UPDATE_FAILED, e.getMessage());
    }
  }
View Full Code Here

Examples of net.sf.redmine_mylyn.core.RedmineStatusException

   
    RedmineServerVersion version;
    try {
      version = apiClient.detectServerVersion(monitor);
    } catch (RedmineApiErrorException e) {
      throw new RedmineStatusException(e);
    }
   
    return version;
  }
View Full Code Here

Examples of net.sf.redmine_mylyn.core.RedmineStatusException

  @Override
  public Issue getIssue(int id, IProgressMonitor monitor) throws RedmineStatusException {
    try {
      return apiClient.getIssue(id, monitor);
    } catch (RedmineApiErrorException e) {
      throw new RedmineStatusException(e);
    }
  }
View Full Code Here

Examples of net.sf.redmine_mylyn.core.RedmineStatusException

    }
   
    try {
      return apiClient.getIssues(monitor, ids);
    } catch (RedmineApiErrorException e) {
      throw new RedmineStatusException(e);
    }
  }
View Full Code Here

Examples of net.sf.redmine_mylyn.core.RedmineStatusException

    }
   
    try {
      return apiClient.getUpdatedIssueIds(ids, updatedSince, monitor);
    } catch (RedmineApiErrorException e) {
      throw new RedmineStatusException(e);
    }
  }
View Full Code Here

Examples of net.sf.redmine_mylyn.core.RedmineStatusException

  @Override
  public Issue[] query(Query query, IProgressMonitor monitor) throws RedmineStatusException {
    try {
      return apiClient.query(query, monitor);
    } catch (RedmineApiErrorException e) {
      throw new RedmineStatusException(e);
    }
  }
View Full Code Here

Examples of net.sf.redmine_mylyn.core.RedmineStatusException

  public int createIssue(Issue issue, IProgressMonitor monitor) throws RedmineStatusException {
    ErrrorCollector errorCollector = new ErrrorCollector();
    try {
      return apiClient.createIssue(issue, errorCollector, monitor).getId();
    } catch (RedmineApiErrorException e) {
      throw new RedmineStatusException(e);
    } catch (RedmineApiInvalidDataException e) {
      IStatus status = new Status(IStatus.ERROR, RedmineCorePlugin.PLUGIN_ID, errorCollector.getErrorString(), e);
      throw new RedmineStatusException(status);
    }
  }
View Full Code Here

Examples of net.sf.redmine_mylyn.core.RedmineStatusException

  public void updateIssue(Issue issue, String comment, TimeEntry timeEntry, IProgressMonitor monitor) throws RedmineStatusException {
    ErrrorCollector errorCollector = new ErrrorCollector();
    try {
      apiClient.updateIssue(issue, comment, timeEntry, errorCollector, monitor);
    } catch (RedmineApiErrorException e) {
      throw new RedmineStatusException(e);
    } catch (RedmineApiInvalidDataException e) {
      IStatus status = new Status(IStatus.ERROR, RedmineCorePlugin.PLUGIN_ID, errorCollector.getErrorString(), e);
      throw new RedmineStatusException(status);
    }
  }
View Full Code Here

Examples of net.sf.redmine_mylyn.core.RedmineStatusException

  public void updateIssue(int issueId, Map<RedmineApiIssueProperty, String> issueValues, String comment, TimeEntry timeEntry, IProgressMonitor monitor) throws RedmineStatusException {
    ErrrorCollector errorCollector = new ErrrorCollector();
    try {
      apiClient.updateIssue(issueId, issueValues, comment, timeEntry, errorCollector, monitor);
    } catch (RedmineApiErrorException e) {
      throw new RedmineStatusException(e);
    } catch (RedmineApiInvalidDataException e) {
      IStatus status = new Status(IStatus.ERROR, RedmineCorePlugin.PLUGIN_ID, errorCollector.getErrorString(), e);
      throw new RedmineStatusException(status);
    }
  }
View Full Code Here

Examples of net.sf.redmine_mylyn.core.RedmineStatusException

      attachment.setFilesize(source.getLength());
      attachment.setContentType(source.getContentType());

      apiClient.uploadAttachment(issueId, attachment, source.createInputStream(monitor), comment, errorCollector, monitor);
    } catch (CoreException e) {
      new RedmineStatusException(e.getStatus());
    } catch (RedmineApiErrorException e) {
      throw new RedmineStatusException(e);
    } catch (RedmineApiInvalidDataException e) {
      IStatus status = new Status(IStatus.ERROR, RedmineCorePlugin.PLUGIN_ID, errorCollector.getErrorString(), e);
      throw new RedmineStatusException(status);
    }
  }
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.