Package com.ibm.fhir.search.exception
Class SearchExceptionUtil
- java.lang.Object
-
- com.ibm.fhir.search.exception.SearchExceptionUtil
-
public class SearchExceptionUtil extends Object
SearchExceptionUtil encapsulates the logic for throwing a Search Exception
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static FHIRSearchExceptionbuildNewChainedParameterException(String name, Exception e)creates a new chained parameter exceptionstatic FHIRSearchExceptionbuildNewDateTimeFormatException(Exception e)build data time format exceptionstatic IllegalArgumentExceptionbuildNewIllegalArgumentException(String val)builds an illegal Argument exception.static IllegalStateExceptionbuildNewIllegalStateException()builds an illegal state exception for a search filter executionstatic FHIRSearchExceptionbuildNewInvalidSearchException(String msg)creates an invalid search exception.static FHIRSearchExceptionbuildNewParseParameterException(String name, Exception e)creates a new parse parameter exceptionstatic FHIRSearchExceptionbuildNewParseParametersException(Exception e)creates a new parse parameters exceptionstatic FHIRSearchExceptionbuildNewReverseChainedParameterException(String name, Exception e)creates a new reverse chained parameter exception
-
-
-
Method Detail
-
buildNewInvalidSearchException
public static FHIRSearchException buildNewInvalidSearchException(String msg)
creates an invalid search exception.- Parameters:
msg-- Returns:
-
buildNewParseParameterException
public static FHIRSearchException buildNewParseParameterException(String name, Exception e)
creates a new parse parameter exception- Parameters:
name-e-- Returns:
-
buildNewParseParametersException
public static FHIRSearchException buildNewParseParametersException(Exception e)
creates a new parse parameters exception- Parameters:
name-e-- Returns:
-
buildNewChainedParameterException
public static FHIRSearchException buildNewChainedParameterException(String name, Exception e)
creates a new chained parameter exception- Parameters:
name-e-- Returns:
-
buildNewReverseChainedParameterException
public static FHIRSearchException buildNewReverseChainedParameterException(String name, Exception e)
creates a new reverse chained parameter exception- Parameters:
name- The search parameter namee- An exception- Returns:
- A FHIRSearchException
-
buildNewIllegalStateException
public static IllegalStateException buildNewIllegalStateException()
builds an illegal state exception for a search filter execution- Returns:
-
buildNewIllegalArgumentException
public static IllegalArgumentException buildNewIllegalArgumentException(String val)
builds an illegal Argument exception.- Parameters:
val-- Returns:
-
buildNewDateTimeFormatException
public static FHIRSearchException buildNewDateTimeFormatException(Exception e)
build data time format exception- Parameters:
exception- e- Returns:
-
-