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 FHIRSearchException
buildNewChainedParameterException(String name, Exception e)
creates a new chained parameter exceptionstatic FHIRSearchException
buildNewDateTimeFormatException(Exception e)
build data time format exceptionstatic IllegalArgumentException
buildNewIllegalArgumentException(String val)
builds an illegal Argument exception.static IllegalStateException
buildNewIllegalStateException()
builds an illegal state exception for a search filter executionstatic FHIRSearchException
buildNewInvalidSearchException(String msg)
creates an invalid search exception.static FHIRSearchException
buildNewParseParameterException(String name, Exception e)
creates a new parse 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:
-
buildNewChainedParameterException
public static FHIRSearchException buildNewChainedParameterException(String name, Exception e)
creates a new chained parameter exception- Parameters:
name
-e
-- Returns:
-
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:
-
-