Class SearchExceptionUtil
- java.lang.Object
-
- org.linuxforhealth.fhir.search.exception.SearchExceptionUtil
-
public class SearchExceptionUtil extends java.lang.Object
SearchExceptionUtil encapsulates the logic for throwing a Search Exception
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static FHIRSearchException
buildNewChainedParameterException(java.lang.String name, java.lang.Exception e)
creates a new chained parameter exceptionstatic FHIRSearchException
buildNewDateTimeFormatException(java.lang.Exception e)
build data time format exceptionstatic java.lang.IllegalArgumentException
buildNewIllegalArgumentException(java.lang.String val)
builds an illegal Argument exception.static java.lang.IllegalStateException
buildNewIllegalStateException()
builds an illegal state exception for a search filter executionstatic FHIRSearchException
buildNewInvalidSearchException(java.lang.String msg)
creates an invalid search exception.static FHIRSearchException
buildNewParseParameterException(java.lang.String name, java.lang.Exception e)
creates a new parse parameter exceptionstatic FHIRSearchException
buildNewParseParametersException(java.lang.Exception e)
creates a new parse parameters exceptionstatic FHIRSearchException
buildNewReverseChainedParameterException(java.lang.String name, java.lang.Exception e)
creates a new reverse chained parameter 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 namee
- 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:
-
-