public class EFhirClientException extends RuntimeException
if(e.hasServerErrors()) {
List errors = e.getServerErrors();
//process errors...
}
| Constructor and Description |
|---|
EFhirClientException(Exception cause) |
EFhirClientException(OperationOutcome serverError)
Generate EFhirClientException indicating the cause of the exception
along with any OperationOutcome server error the server may have generated.
|
EFhirClientException(String message) |
EFhirClientException(String message,
Exception cause) |
EFhirClientException(String message,
List<OperationOutcome> serverErrors) |
EFhirClientException(String message,
OperationOutcome serverError)
Generate EFhirClientException which include a message indicating the cause of the exception
along with any OperationOutcome server error that may have resulted.
|
| Modifier and Type | Method and Description |
|---|---|
List<OperationOutcome> |
getServerErrors()
Method returns all OperationOutcome server errors that are
associated with this exception.
|
boolean |
hasServerErrors()
Method returns true if exception contains server OperationOutcome errors in payload.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic EFhirClientException(String message)
public EFhirClientException(String message, List<OperationOutcome> serverErrors)
public EFhirClientException(Exception cause)
public EFhirClientException(String message, Exception cause)
public EFhirClientException(String message, OperationOutcome serverError)
message - serverError - public EFhirClientException(OperationOutcome serverError)
message - serverError - public List<OperationOutcome> getServerErrors()
public boolean hasServerErrors()
Copyright © 2014–2021 Health Level 7. All rights reserved.