Class EFhirClientException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.hl7.fhir.dstu2.utils.client.EFhirClientException
All Implemented Interfaces:
Serializable

Deprecated.
FHIR client exception. FHIR API exception will be wrapped in FHIR client exceptions. OperationOutcome errors resulting from the server can be access by calling:
 
 if(e.hasServerErrors()) {
        List errors = e.getServerErrors();
  //process errors...
 }
 
 
Author:
Claude Nanjo
See Also:
  • Constructor Details

    • EFhirClientException

      public EFhirClientException(String message)
      Deprecated.
    • EFhirClientException

      public EFhirClientException(String message, List<OperationOutcome> serverErrors)
      Deprecated.
    • EFhirClientException

      Deprecated.
    • EFhirClientException

      public EFhirClientException(String message, Exception cause)
      Deprecated.
    • EFhirClientException

      public EFhirClientException(String message, OperationOutcome serverError)
      Deprecated.
      Generate EFhirClientException which include a message indicating the cause of the exception along with any OperationOutcome server error that may have resulted.
      Parameters:
      message -
      serverError -
    • EFhirClientException

      Deprecated.
      Generate EFhirClientException indicating the cause of the exception along with any OperationOutcome server error the server may have generated. A default message of "One or more server side errors have occurred during this operation. Refer to e.getServerErrors() for additional details." will be returned to users.
      Parameters:
      serverError -
      message -
  • Method Details

    • getServerErrors

      Deprecated.
      Method returns all OperationOutcome server errors that are associated with this exception.
      Returns:
    • hasServerErrors

      public boolean hasServerErrors()
      Deprecated.
      Method returns true if exception contains server OperationOutcome errors in payload.
      Returns: