本文整理了Java中ca.uhn.fhir.rest.server.exceptions.InternalErrorException.()方法的一些代码示例,展示了InternalErrorException.()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。InternalErrorException.()方法的具体详情如下:包路径:ca.uhn.fhir.rest.server.exceptions.InternalErrorException类名称:InternalErrorException方法名:
InternalErrorException.介绍
[英]Constructor[中]建造师
代码示例
代码示例来源:origin: jamesagnew/hapi-fhir
@Override public InputStream getInputStream() { try { return new FileInputStream(nextFile); } catch (FileNotFoundException theE) { throw new InternalErrorException(theE); } }});
代码示例来源:origin: jamesagnew/hapi-fhir
private UrlEncodedFormEntity createFormEntity(List parameters) { try { return new UrlEncodedFormEntity(parameters, "UTF-8"); } catch (UnsupportedEncodingException e) { throw new InternalErrorException("Server does not support UTF-8 (should not happen)", e); }}
代码示例来源:origin: jamesagnew/hapi-fhir
RestulfulServerConfiguration getServerConfiguration() { try { return myServerConfiguration.call(); } catch (Exception e) { throw new InternalErrorException(e); }}
代码示例来源:origin: jamesagnew/hapi-fhir
@Override public InputStream getInputStream() { try { return new FileInputStream(nextTemporaryFile); } catch (FileNotFoundException e) { throw new InternalErrorException(e); } }});
代码示例来源:origin: jamesagnew/hapi-fhir
RestulfulServerConfiguration getServerConfiguration() { try { return myServerConfiguration.call(); } catch (Exception e) { throw new InternalErrorException(e); }}
代码示例来源:origin: jamesagnew/hapi-fhir
public T newInstance() { try { final Object[] args = new Object[myCompositeTypes.size()]; for (int i = 0; i
@CoverageIgnoreprotected IQueryParameterAnd newInstanceAnd(String chain) { IQueryParameterAnd type; Class clazz = ResourceMetaParams.RESOURCE_META_AND_PARAMS.get(chain); try { type = clazz.newInstance(); } catch (Exception e) { throw new InternalErrorException("Failure creating instance of " + clazz, e); } return type;}
代码示例来源:origin: jamesagnew/hapi-fhir
@CoverageIgnore public IQueryParameterType newInstanceType(String chain) { IQueryParameterType type; Class clazz = ResourceMetaParams.RESOURCE_META_PARAMS.get(chain); try { type = clazz.newInstance(); } catch (Exception e) { throw new InternalErrorException("Failure creating instance of " + clazz, e); } return type; }}
代码示例来源:origin: jamesagnew/hapi-fhir
private BaseServerResponseException preprocessException(final Throwable theException, final JaxRsRequest requestDetails) { try { Throwable theExceptiOnToConvert= theException; if (!(theException instanceof BaseServerResponseException) } return exceptionHandler.preProcessOutgoingException(requestDetails, theExceptionToConvert, null); } catch (final ServletException e) { return new InternalErrorException(e); }}
代码示例来源:origin: jamesagnew/hapi-fhir
private T refresh() { T retVal; try { retVal = myFetcher.call(); } catch (Exception e) { throw new InternalErrorException(e); } myCapabilityStatement.set(retVal); myLastFetched = now(); return retVal;}
代码示例来源:origin: jamesagnew/hapi-fhir
public static IBaseOperationOutcome newInstance(FhirContext theCtx) { RuntimeResourceDefinition ooDef = theCtx.getResourceDefinition("OperationOutcome"); try { return (IBaseOperationOutcome) ooDef.getImplementingClass().newInstance(); } catch (InstantiationException e) { throw new InternalErrorException("Unable to instantiate OperationOutcome", e); } catch (IllegalAccessException e) { throw new InternalErrorException("Unable to instantiate OperationOutcome", e); }}
代码示例来源:origin: jamesagnew/hapi-fhir
private IBaseResource findResource(Map theCandidateResources, IIdType theId) { IBaseResource retVal = theCandidateResources.get(theId.toUnqualifiedVersionless().getValue()); if (retVal == null) { throw new InternalErrorException("Unknown reference in ImplementationGuide: " + theId); } return retVal;}
代码示例来源:origin: jamesagnew/hapi-fhir
@Overridepublic ExtensionDt get(IResource theResource) { Object retValObj = theResource.getResourceMetadata().get(this); if (retValObj == null) { return null; } else if (retValObj instanceof ExtensionDt) { return (ExtensionDt) retValObj; } throw new InternalErrorException("Found an object of type '" + retValObj.getClass().getCanonicalName() + "' in resource metadata for key " + this.name() + " - Expected " + ExtensionDt.class.getCanonicalName());}
代码示例来源:origin: jamesagnew/hapi-fhir
@Overrideprotected org.hl7.fhir.r4.model.CodeSystem getCodeSystemFromContext(String theSystem) { CodeSystem codeSystem = myValidationSupport.fetchCodeSystem(myContext, theSystem); try { return VersionConvertor_30_40.convertCodeSystem(codeSystem); } catch (FHIRException e) { throw new InternalErrorException(e); }}
代码示例来源:origin: jamesagnew/hapi-fhir
@Overridepublic org.hl7.fhir.r4.model.CodeSystem fetchCodeSystem(String system) { CodeSystem fetched = myWrap.fetchCodeSystem(system); if (fetched == null) { return null; } try { return VersionConvertor_30_40.convertCodeSystem(fetched); } catch (FHIRException e) { throw new InternalErrorException(e); }}
代码示例来源:origin: jamesagnew/hapi-fhir
@Override public IQueryParameterAnd parse(FhirContext theContext, String theParamName, List theString) throws InternalErrorException, InvalidRequestException { IQueryParameterAnd dt; try { dt = newInstance(); dt.setValuesAsQueryTokens(theContext, theParamName, theString); } catch (SecurityException e) { throw new InternalErrorException(e); } return dt; }}
代码示例来源:origin: jamesagnew/hapi-fhir
@Overridepublic Bundle createBundle(String theBundleType) { Bundle resp = new Bundle(); try { resp.setType(Bundle.BundleType.fromCode(theBundleType)); } catch (FHIRException theE) { throw new InternalErrorException("Unknown bundle type: " + theBundleType); } return resp;}
代码示例来源:origin: jamesagnew/hapi-fhir
@Overridepublic Bundle createBundle(String theBundleType) { Bundle resp = new Bundle(); try { resp.setType(Bundle.BundleType.fromCode(theBundleType)); } catch (FHIRException theE) { throw new InternalErrorException("Unknown bundle type: " + theBundleType); } return resp;}
代码示例来源:origin: jamesagnew/hapi-fhir
@Overridepublic IBaseResource expandValueSet(IBaseResource theInput) { ValueSet valueSetToExpand = (ValueSet) theInput; try { org.hl7.fhir.r4.model.ValueSet valueSetToExpandR4; valueSetToExpandR4 = VersionConvertor_30_40.convertValueSet(valueSetToExpand); org.hl7.fhir.r4.model.ValueSet expandedR4 = super.expandValueSet(valueSetToExpandR4); return VersionConvertor_30_40.convertValueSet(expandedR4); } catch (FHIRException e) { throw new InternalErrorException(e); }}
代码示例来源:origin: jamesagnew/hapi-fhir
@Overridepublic SubscriptionMatchResult match(CanonicalSubscription theSubscription, ResourceModifiedMessage theMsg) { try { return match(theSubscription.getCriteriaString(), theMsg.getNewPayload(myContext)); } catch (Exception e) { throw new InternalErrorException("Failure processing resource ID[" + theMsg.getId(myContext) + "] for subscription ID[" + theSubscription.getIdElementString() + "]: " + e.getMessage(), e); }}【文章原创作者:武汉网站开发公司 http://www.1234xp.com/wuhan.html 网络转载请说明出处】