Class FHIRDbHelper


  • public class FHIRDbHelper
    extends Object
    Helper functions used for managing FHIR database interactions
    • Constructor Detail

      • FHIRDbHelper

        public FHIRDbHelper()
    • Method Detail

      • severe

        public static <XT extends com.ibm.fhir.persistence.exception.FHIRPersistenceException> XT severe​(Logger logger,
                                                                                                         XT fx,
                                                                                                         Throwable cause)
        Convenience function to log the cause of an exception about to be thrown. This is useful when avoiding chaining the cause with the persistence exception, which could inadvertently leak sensitive information (details of the schema, for example)
        Parameters:
        logger -
        fx -
        cause -
        Returns:
      • severe

        public static <XT extends com.ibm.fhir.persistence.exception.FHIRPersistenceException> XT severe​(Logger logger,
                                                                                                         XT fx,
                                                                                                         String errorMessage,
                                                                                                         Throwable cause)
        Log the exception message here along with the cause stack. Return the exception fx to the caller so that it can be thrown easily.
        Parameters:
        logger -
        fx -
        errorMessage -
        cause -
        Returns: