/** * Constructor which accepts an {@link IBaseOperationOutcome} resource which will be supplied in the response */ public UnprocessableEntityException(FhirContext theCtx, IBaseOperationOutcome theOperationOutcome) { super(STATUS_CODE, OperationOutcomeUtil.getFirstIssueDetails(theCtx, theOperationOutcome), theOperationOutcome); }
private static String toDescription(FhirContext theCtx, IBaseOperationOutcome theOo) { StringBuilder b = new StringBuilder(); b.append(OperationOutcomeUtil.getFirstIssueDetails(theCtx, theOo)); // b.append(" - "); // b.append(theOo.getIssueFirstRep().getLocationFirstRep().getValue()); return b.toString(); }
/** * Constructor which accepts an {@link IBaseOperationOutcome} resource which will be supplied in the response */ public UnprocessableEntityException(FhirContext theCtx, IBaseOperationOutcome theOperationOutcome) { super(STATUS_CODE, OperationOutcomeUtil.getFirstIssueDetails(theCtx, theOperationOutcome), theOperationOutcome); }
String details = OperationOutcomeUtil.getFirstIssueDetails(getFhirContext(), oo); if (isNotBlank(details)) { message = message + ": " + details;
private static String toDescription(FhirContext theCtx, IBaseOperationOutcome theOo) { StringBuilder b = new StringBuilder(); b.append(OperationOutcomeUtil.getFirstIssueDetails(theCtx, theOo)); // b.append(" - "); // b.append(theOo.getIssueFirstRep().getLocationFirstRep().getValue()); return b.toString(); }
String details = OperationOutcomeUtil.getFirstIssueDetails(getFhirContext(), oo); if (isNotBlank(details)) { message = message + ": " + details;