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:
java.io.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(java.lang.String message)
FHIRPersistenceDataAccessException(java.lang.String message, java.lang.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(java.util.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
-
-
-
-
Method Detail
-
withIssue
public FHIRPersistenceDataAccessException withIssue(OperationOutcome.Issue... issues)
- Overrides:
withIssue
in classFHIRPersistenceException
-
withIssue
public FHIRPersistenceDataAccessException withIssue(java.util.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
-
-