Package ca.uhn.fhir.model.dstu.resource

Examples of ca.uhn.fhir.model.dstu.resource.OperationOutcome.addIssue()


      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);
View Full Code Here


  private static OperationOutcome toOperationOutcome(String... theMessage) {
    OperationOutcome operationOutcome = new OperationOutcome();
    if (theMessage != null) {
      for (String next : theMessage) {
        operationOutcome.addIssue().setDetails(next);
      }
    }
    return operationOutcome;
  }
View Full Code Here

        statusCode = ((BaseServerResponseException) e).getStatusCode();
      }

      if (oo == null) {
        oo = new OperationOutcome();
        Issue issue = oo.addIssue();
        issue.getSeverity().setValueAsEnum(IssueSeverityEnum.ERROR);
        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) {
View Full Code Here

  private static OperationOutcome toOperationOutcome(String... theMessage) {
    OperationOutcome operationOutcome = new OperationOutcome();
    if (theMessage != null) {
      for (String next : theMessage) {
        operationOutcome.addIssue().setDetails(next);
      }
    }
    return operationOutcome;
  }
View Full Code Here

  private static OperationOutcome toOperationOutcome(String... theMessage) {
    OperationOutcome operationOutcome = new OperationOutcome();
    if (theMessage != null) {
      for (String next : theMessage) {
        operationOutcome.addIssue().setDetails(next);
      }
    }
    return operationOutcome;
  }
View Full Code Here

      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);
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.