Stream: hapi
Topic: Exceptionhandling for HAPI FHIR
Andreas Mautsch (May 06 2021 at 06:58):
Hello everybody,
is there a way to improve the exceptionhandling with HAPI FHIR to include the original exception cause?
e.g if I do a call with an invalid id:
/fhir/fhir/Patient/invalidid
the response is always smth like:
"the website is not reachable ... ERR_INVALID_RESPONSE"
but the original cause (e.g. host not found, open circuitbreaker9 will max. be logged but is not visible inside the response
i tried to find a way by registering my own ExceptionIntercepter as described in the documentaion,
but to now avail ...
so is this possible in any way ? or just not wanted by the FHIR contract ?
thx
Last updated: Apr 12 2022 at 19:14 UTC