@Override public void containedResourceWithNoId(IParseLocation theLocation) { throw new DataFormatException("Resource has contained child resource with no ID"); }
throw new DataFormatException("DataFormatException at [" + nextEvent.getLocation().toString() + "]: " + e.getMessage(), e); throw new DataFormatException(e);
theContext.getResourceDefinition(resourceName); } catch (DataFormatException e) { throw new UnprocessableEntityException("Invalid SearchParameter.expression value \"" + nextPath + "\": " + e.getMessage());
String msg; if (httpRequest != null) { msg = getFhirContext().getLocalizer().getMessage(BaseClient.class, "failedToParseResponse", httpRequest.getHttpVerbName(), httpRequest.getUri(), e.toString()); } else { msg = getFhirContext().getLocalizer().getMessage(BaseClient.class, "failedToParseResponse", "UNKNOWN", "UNKNOWN", e.toString());
throw new DataFormatException("DataFormatException at [" + nextEvent.getLocation().toString() + "]: " + e.getMessage(), e); throw new DataFormatException(e);
results = val.validateWithResult(contents); } catch (DataFormatException e) { throw new CommandFailureException(e.getMessage());
String msg; if (httpRequest != null) { msg = getFhirContext().getLocalizer().getMessage(BaseClient.class, "failedToParseResponse", httpRequest.getHttpVerbName(), httpRequest.getUri(), e.toString()); } else { msg = getFhirContext().getLocalizer().getMessage(BaseClient.class, "failedToParseResponse", "UNKNOWN", "UNKNOWN", e.toString());
@Override public void invalidValue(IParseLocation theLocation, String theValue, String theError) { throw new DataFormatException("Invalid attribute value \"" + theValue + "\": " + theError); }
String msg = ctx.getLocalizer().getMessage(ResourceParameter.class, "failedToParseRequest", encoding.name(), e.getMessage()); throw new InvalidRequestException(msg);
@Override public void unknownElement(IParseLocation theLocation, String theElementName) { throw new DataFormatException("Unknown element '" + theElementName + "' found during parse"); }
theContext.getResourceDefinition(resourceName); } catch (DataFormatException e) { throw new UnprocessableEntityException("Invalid SearchParameter.expression value \"" + nextPath + "\": " + e.getMessage());
@Override public void unexpectedRepeatingElement(IParseLocation theLocation, String theElementName) { throw new DataFormatException("Multiple repetitions of non-repeatable element '" + theElementName + "' found during parse"); }
String msg = ctx.getLocalizer().getMessage(ResourceParameter.class, "failedToParseRequest", encoding.name(), e.getMessage()); throw new InvalidRequestException(msg);
@Override public void unknownReference(IParseLocation theLocation, String theReference) { throw new DataFormatException("Resource has invalid reference: " + theReference); }
private void throwBadDateFormat(String theValue, String theMesssage) { throw new DataFormatException("Invalid date/time format: \"" + theValue + "\": " + theMesssage); }
private void throwBadDateFormat(String theValue, String theMesssage) { throw new DataFormatException("Invalid date/time format: \"" + theValue + "\": " + theMesssage); }
@Override public void unknownAttribute(IParseLocation theLocation, String theAttributeName) { throw new DataFormatException("Unknown attribute '" + theAttributeName + "' found during parse"); }
private void throwBadDateFormat(String theValue) { throw new DataFormatException("Invalid date/time format: \"" + theValue + "\""); }
private void throwBadDateFormat(String theValue) { throw new DataFormatException("Invalid date/time format: \"" + theValue + "\""); }
private void throwBadDateFormat(String theValue, String theMesssage) { throw new DataFormatException("Invalid date/time format: \"" + theValue + "\": " + theMesssage); }