Package net.sf.redmine_mylyn.api.exception

Examples of net.sf.redmine_mylyn.api.exception.RedmineApiErrorException


     
     
      return stringWriter.toString();
    } catch (JSONException e) {
      e.printStackTrace();
      throw new RedmineApiErrorException(Messages.ERRMSG_CREATION_OF_SUBMIT_DATA_FAILED, e);
    }
  }
View Full Code Here


     
     
      return stringWriter.toString();
    } catch (JSONException e) {
      e.printStackTrace();
      throw new RedmineApiErrorException(Messages.ERRMSG_CREATION_OF_SUBMIT_DATA_FAILED, e);
    }
  }
View Full Code Here

        }
      }
    } catch (IOException e) {
      //TODO
      log.error(e, Messages.ERRMSG_METHOD_EXECUTION_FAILED_X, e.getMessage());
      throw new RedmineApiErrorException(Messages.ERRMSG_METHOD_EXECUTION_FAILED, e);
    } finally {
      method.releaseConnection();
    }
   
    return response;
View Full Code Here

      }
     
      return sc;
    } catch (RuntimeException e) {
      log.error(e, Messages.ERRMSG_UNEXCPECTED_EXCEPTION_METHOD_EXECUTION_FAILED_X, e.getMessage());
      throw new RedmineApiErrorException(Messages.ERRMSG_UNEXCPECTED_EXCEPTION_METHOD_EXECUTION_FAILED, e);
    } catch (ConnectException e) {
      log.info(Messages.ERRMSG_METHOD_EXECUTION_FAILED_X, e.getMessage());
      throw new RedmineApiErrorException(e.getMessage(), e);
    } catch (IOException e) {
      //TODO
      log.error(e, Messages.ERRMSG_METHOD_EXECUTION_FAILED_X, e.getMessage());
      throw new RedmineApiErrorException(Messages.ERRMSG_METHOD_EXECUTION_FAILED, e);
    }
  }
View Full Code Here

                webHelper.refreshRepostitoryCredentials(message, monitor);
              } else {
                if (webHelper.useApiKey()) {
                  webHelper.refreshHttpAuthCredentials(message + ": " + headerElem.getValue(), monitor); //$NON-NLS-1$
                } else {
                  throw new RedmineApiErrorException(Messages.ERRMSG_ADDITIONAL_HTTPAUTH_NOT_SUPPORTED);
                }
              }
              break;
            }
          }
View Full Code Here

     
      method.setRequestEntity(new IssueRequestEntity(issue));
      method.addRequestHeader(HEADER_CSRF_TOKEN, token);
     
    } catch (UnsupportedEncodingException e) {
      throw new RedmineApiErrorException(Messages.ERRMSG_METHOD_EXECUTION_FAILED_INVALID_ENCODING, e, "UTF-8"); //$NON-NLS-2$ //$NON-NLS-1$
    }
   
    Object response = executeMethod(method, submitIssueParser, monitor, HttpStatus.SC_CREATED, HttpStatus.SC_UNPROCESSABLE_ENTITY);
   
    if(monitor.isCanceled()) {
View Full Code Here

    try {
      issueValues.put(RedmineApiIssueProperty.NOTES, comment);
      updateIssue(issueId, new IssueRequestEntity(issueValues, comment, timeEntry), errorCollector, monitor);
    } catch (UnsupportedEncodingException e) {
      throw new RedmineApiErrorException(Messages.ERRMSG_METHOD_EXECUTION_FAILED_INVALID_ENCODING, e, "UTF-8"); //$NON-NLS-2$ //$NON-NLS-1$
    } finally {
      if(monitor.isCanceled()) {
        throw new OperationCanceledException();
      } else {
        monitor.worked(1);
View Full Code Here

    try {
      issue.setNotes(comment);
      updateIssue(issue.getId(), new IssueRequestEntity(issue, comment, timeEntry), errorCollector, monitor);
    } catch (UnsupportedEncodingException e) {
      throw new RedmineApiErrorException(Messages.ERRMSG_METHOD_EXECUTION_FAILED_INVALID_ENCODING, e, "UTF-8"); //$NON-NLS-2$ //$NON-NLS-1$
    } finally {
      if(monitor.isCanceled()) {
        throw new OperationCanceledException();
      } else {
        monitor.worked(1);
View Full Code Here

      e.printStackTrace();
      if (e.getLinkedException() instanceof RedmineApiRemoteException) {
        throw (RedmineApiRemoteException)e.getLinkedException();
      }

      RedmineApiErrorException exc = new RedmineApiErrorException(Messages.ERRMSG_INPUTSTREAM_PARSING_FAILED, e);
      log.error(e, exc.getMessage());
      throw exc;
    }
  }
View Full Code Here

      XMLFilterImpl filter = new MissingNamespaceFilter();
      SAXSource source = new SAXSource(filter, new InputSource(input));
     
      return parser.parseInputStream(source);
    } catch (Exception e) {
      throw new RedmineApiErrorException(Messages.ERRMSG_INPUTSTREAM_PARSING_FAILED, e);
    }
  }
View Full Code Here

TOP

Related Classes of net.sf.redmine_mylyn.api.exception.RedmineApiErrorException

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.