Examples of Issue


Examples of ca.uhn.fhir.model.dstu.resource.OperationOutcome.Issue

      theResponse.getWriter().write(e.getMessage());

    } catch (Throwable e) {

      OperationOutcome oo = new OperationOutcome();
      Issue issue = oo.addIssue();
      issue.getSeverity().setValueAsEnum(IssueSeverityEnum.ERROR);

      int statusCode = 500;
      if (e instanceof InternalErrorException) {
        ourLog.error("Failure during REST processing", e);
        issue.getDetails().setValue(e.toString() + "\n\n" + ExceptionUtils.getStackTrace(e));
      } else if (e instanceof BaseServerResponseException) {
        ourLog.warn("Failure during REST processing: {}", e.toString());
        statusCode = ((BaseServerResponseException) e).getStatusCode();
        issue.getDetails().setValue(e.getMessage());
      } else {
        ourLog.error("Failure during REST processing", e);
        issue.getDetails().setValue(e.toString() + "\n\n" + ExceptionUtils.getStackTrace(e));
      }

      streamResponseAsResource(this, theResponse, oo, determineResponseEncoding(theRequest), true, false, NarrativeModeEnum.NORMAL, statusCode, false);

      theResponse.setStatus(statusCode);
View Full Code Here

Examples of com.almende.eve.entity.Issue

      }
    }
    else {
      if (activityStart != null || activityEnd != null) {
        // no solution
        Issue issue = new Issue();
        issue.setCode(Issue.NO_PLANNING);
        issue.setType(Issue.TYPE.error);
        issue.setMessage("No free interval found for the meeting");
        issue.setTimestamp(DateTime.now().toString());
        // TODO: generate hints
        addIssue(issue);
 
        Status status = activity.withStatus();
        status.setStart(null);
        status.setEnd(null);
        status.setActivityStatus(Status.ACTIVITY_STATUS.error);
        status.setUpdated(DateTime.now().toString());
        state.put("activity", activity);
        logger.info(issue.getMessage()); // TODO: cleanup logging
        return true;
      }
      else {
        // planning did not change (no solution was already the case)
      }
View Full Code Here

Examples of com.android.tools.lint.detector.api.Issue

        mWriter.write("<br/>\n");                                        //$NON-NLS-1$
        mWriter.write(String.format("%1$d errors and %2$d warnings found:",
                errorCount, warningCount));
        mWriter.write("<br/><br/>\n");                                   //$NON-NLS-1$

        Issue previousIssue = null;
        if (!issues.isEmpty()) {
            List<List<Warning>> related = new ArrayList<List<Warning>>();
            List<Warning> currentList = null;
            for (Warning warning : issues) {
                if (warning.issue != previousIssue) {
                    previousIssue = warning.issue;
                    currentList = new ArrayList<Warning>();
                    related.add(currentList);
                }
                assert currentList != null;
                currentList.add(warning);
            }

            writeOverview(related, missing.size());

            Category previousCategory = null;
            for (List<Warning> warnings : related) {
                Warning first = warnings.get(0);
                Issue issue = first.issue;

                if (issue.getCategory() != previousCategory) {
                    previousCategory = issue.getCategory();
                    mWriter.write("\n<a name=\"");                       //$NON-NLS-1$
                    mWriter.write(issue.getCategory().getFullName());
                    mWriter.write("\"></a>\n");                          //$NON-NLS-1$
                    mWriter.write("<div class=\"category\"><a href=\"#\" title=\"Return to top\">");           //$NON-NLS-1$
                    mWriter.write(issue.getCategory().getFullName());
                    mWriter.write("</a><div class=\"categorySeparator\"></div>\n");//$NON-NLS-1$
                    mWriter.write("</div>\n");                           //$NON-NLS-1$
                }

                mWriter.write("<a name=\"" + issue.getId() + "\"></a>\n"); //$NON-NLS-1$ //$NON-NLS-2$
                mWriter.write("<div class=\"issue\">\n");                //$NON-NLS-1$

                // Explain this issue
                mWriter.write("<div class=\"id\"><a href=\"#\" title=\"Return to top\">");                     //$NON-NLS-1$
                mWriter.write(issue.getId());
                mWriter.write(": ");                                     //$NON-NLS-1$
                mWriter.write(issue.getBriefDescription(HTML));
                mWriter.write("</a><div class=\"issueSeparator\"></div>\n"); //$NON-NLS-1$
                mWriter.write("</div>\n");                               //$NON-NLS-1$

                mWriter.write("<div class=\"warningslist\">\n");         //$NON-NLS-1$
                boolean partialHide = !mSimpleFormat && warnings.size() > SPLIT_LIMIT;
View Full Code Here

Examples of com.atlassian.jira.issue.Issue

  }
 
  public void workflowEvent(IssueEvent event) {
    if (!isEventMonitored(event))
      return;
    Issue issue = event.getIssue();
    StringBuilder sb = new StringBuilder();
    sb.append("JIRA issue ");
    sb.append(ManagerFactory.getApplicationProperties().getString(APKeys.JIRA_BASEURL));
    sb.append("/browse/");
    sb.append(issue.getKey());
    sb.append(" ");
    sb.append(ComponentManager.getInstance().getEventTypeManager().getEventType(event.getEventTypeId()).getName().toLowerCase());
    sb.append(" by ");
    sb.append(event.getUser().getName());
    if (event.getComment() != null && event.getComment().getBody().length() > 0) {
View Full Code Here

Examples of com.atlassian.jira.rest.client.api.domain.Issue

    assertNull(issue.getIssueLinks());
  }

  @Test
  public void issueWithSubtasks() throws JSONException {
    final Issue issue = parseIssue("/json/issue/subtasks-5.json");
    Iterable<Subtask> subtasks = issue.getSubtasks();
    assertEquals(1, Iterables.size(subtasks));
    Subtask subtask = Iterables.get(subtasks, 0, null);
    assertNotNull(subtask);
    assertEquals("SAM-2", subtask.getIssueKey());
    assertEquals("Open", subtask.getStatus().getName());
View Full Code Here

Examples of com.atlassian.jira.rest.client.domain.Issue

        Set<String> labels = null;
        JSONObject rawObject = null;

        BasicIssue basicIssue = mockSearchRestClient.getBasicIssue(issueKey);
        Collection<Comment> comments = mockSearchRestClient.getCommentsForIssue(basicIssue.getId());
        Issue issue = new Issue(summary, self, basicIssue.getKey(), basicIssue.getId(), project, issueType, status,
                description, priority, resolution, attachments, reporter, assignee, creationDate, updateDate,
                dueDate, affectedVersions, fixVersions, components, timeTracking, fields, comments,
                transitionsUri, issueLinks,
                votes, worklogs, watchers, expandos, subtasks, changelog, labels, rawObject);
        return issue;
View Full Code Here

Examples of com.github.api.v2.schema.Issue

    IssueService service = factory.createIssueService();
    List<Issue> issues = service.searchIssues("facebook", "tornado", Issue.State.OPEN, "type");
    for (Issue issue : issues) {
      printResult(issue);
    }
    Issue issue = service.getIssue("facebook", "tornado", 1);
    printResult(issue);
  }
View Full Code Here

Examples of com.google.test.metric.report.issues.Issue

  protected void setUp() throws Exception {
    super.setUp();
    out = new ByteArrayOutputStream();
    CostModel costModel = new CostModel();
    SourceLocation location = new SourceLocation("com/google/FooClass.java", 1);
    final Issue issue =
        new Issue(location, "void doThing()", 0.5f, IssueType.CONSTRUCTION, IssueSubType.SETTER);
    final MethodCost methodCost = new MethodCost("", "void setUp()", 1, false, false, false);
    methodCost.addCostSource(new MethodInvocationCost(location, methodCost,
        Reason.IMPLICIT_SETTER, new Cost(100, 1, new int[0])));

    //TODO: looks like we want IssuesReporter to be an interface
View Full Code Here

Examples of com.googlecode.jslint4java.Issue

    }

    @Test
    public void testExpectedOutputOneIssue() {
        File file = new File("foo/bar.js");
        Issue issue = new IssueBuilder(file.toString(), 1, 1, "no clucking").evidence("cluck()")
                .build();
        issues.add(issue);
        runFormatter(file);
        // Build up the expected output in a cross-platform manner.
        String nl = System.getProperty("line.separator");
View Full Code Here

Examples of com.jcabi.github.Issue

    @Test
    public void iteratesIssues() throws Exception {
        final Repo repo = this.repo();
        final String name = "bug";
        repo.labels().create(name, "c0c0c0");
        final Issue issue = repo.issues().create("title", "body");
        issue.labels().add(Collections.singletonList(name));
        MatcherAssert.assertThat(
            issue.labels().iterate(),
            Matchers.<Label>iterableWithSize(1)
        );
    }
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.