Class FHIRPersistenceDataAccessException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- com.ibm.fhir.exception.FHIRException
-
- com.ibm.fhir.exception.FHIROperationException
-
- com.ibm.fhir.persistence.exception.FHIRPersistenceException
-
- com.ibm.fhir.persistence.jdbc.exception.FHIRPersistenceDataAccessException
-
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
FHIRPersistenceFKVException
public class FHIRPersistenceDataAccessException extends FHIRPersistenceException
This exception class represents failures encountered while attempting to access (read, write) data in the FHIR DB. TODO replace with Builder fluent pattern to align with the new R4 model style- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description FHIRPersistenceDataAccessException(String message)
FHIRPersistenceDataAccessException(String message, Throwable cause)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isTransactionRetryable()
Getter for the transactionRetryable flagvoid
setTransactionRetryable(boolean flag)
Setter for the transactionRetryable flagFHIRPersistenceDataAccessException
withIssue(OperationOutcome.Issue... issues)
FHIRPersistenceDataAccessException
withIssue(Collection<OperationOutcome.Issue> issues)
-
Methods inherited from class com.ibm.fhir.exception.FHIROperationException
buildOperationOutcome, getIssues, setIssues
-
Methods inherited from class com.ibm.fhir.exception.FHIRException
addProbeId, getUniqueId, toString
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
-
-
-
-
Method Detail
-
withIssue
public FHIRPersistenceDataAccessException withIssue(OperationOutcome.Issue... issues)
- Overrides:
withIssue
in classFHIRPersistenceException
-
withIssue
public FHIRPersistenceDataAccessException withIssue(Collection<OperationOutcome.Issue> issues)
- Overrides:
withIssue
in classFHIRPersistenceException
-
setTransactionRetryable
public void setTransactionRetryable(boolean flag)
Setter for the transactionRetryable flag- Parameters:
flag
-
-
isTransactionRetryable
public boolean isTransactionRetryable()
Getter for the transactionRetryable flag- Returns:
- true if the transaction could be retried
-
-