Class FHIRPersistenceDataAccessException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- org.linuxforhealth.fhir.exception.FHIRException
-
- org.linuxforhealth.fhir.exception.FHIROperationException
-
- org.linuxforhealth.fhir.persistence.exception.FHIRPersistenceException
-
- org.linuxforhealth.fhir.persistence.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(java.util.Collection<OperationOutcome.Issue> issues)
FHIRPersistenceDataAccessException
withIssue(OperationOutcome.Issue... issues)
-
Methods inherited from class org.linuxforhealth.fhir.exception.FHIROperationException
buildOperationOutcome, getIssues, setIssues
-
Methods inherited from class org.linuxforhealth.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
-
-