Class SearchExceptionUtil


  • public class SearchExceptionUtil
    extends java.lang.Object
    SearchExceptionUtil encapsulates the logic for throwing a Search Exception
    • Method Detail

      • buildNewInvalidSearchException

        public static FHIRSearchException buildNewInvalidSearchException​(java.lang.String msg)
        creates an invalid search exception.
        Parameters:
        msg -
        Returns:
      • buildNewParseParameterException

        public static FHIRSearchException buildNewParseParameterException​(java.lang.String name,
                                                                          java.lang.Exception e)
        creates a new parse parameter exception
        Parameters:
        name -
        e -
        Returns:
      • buildNewParseParametersException

        public static FHIRSearchException buildNewParseParametersException​(java.lang.Exception e)
        creates a new parse parameters exception
        Parameters:
        name -
        e -
        Returns:
      • buildNewChainedParameterException

        public static FHIRSearchException buildNewChainedParameterException​(java.lang.String name,
                                                                            java.lang.Exception e)
        creates a new chained parameter exception
        Parameters:
        name -
        e -
        Returns:
      • buildNewReverseChainedParameterException

        public static FHIRSearchException buildNewReverseChainedParameterException​(java.lang.String name,
                                                                                   java.lang.Exception e)
        creates a new reverse chained parameter exception
        Parameters:
        name - The search parameter name
        e - An exception
        Returns:
        A FHIRSearchException
      • buildNewIllegalStateException

        public static java.lang.IllegalStateException buildNewIllegalStateException()
        builds an illegal state exception for a search filter execution
        Returns:
      • buildNewIllegalArgumentException

        public static java.lang.IllegalArgumentException buildNewIllegalArgumentException​(java.lang.String val)
        builds an illegal Argument exception.
        Parameters:
        val -
        Returns:
      • buildNewDateTimeFormatException

        public static FHIRSearchException buildNewDateTimeFormatException​(java.lang.Exception e)
        build data time format exception
        Parameters:
        exception - e
        Returns: