Interface SearchExecutionFailureError
- All Superinterfaces:
ErrorObject
Returned when a search query could not be completed due to an unexpected failure.
Example to create an instance using the builder pattern
SearchExecutionFailureError searchExecutionFailureError = SearchExecutionFailureError.builder()
.message("{message}")
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for SearchExecutionFailureError -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for SearchExecutionFailureErrorbuilder(SearchExecutionFailureError template) create builder for SearchExecutionFailureError instancecopyDeep()static SearchExecutionFailureErrordeepCopy(SearchExecutionFailureError template) factory method to create a deep copy of SearchExecutionFailureError@NotNull StringgetCode()Error identifier.@NotNull String"Something went wrong during the search query execution.static SearchExecutionFailureErrorof()factory methodstatic SearchExecutionFailureErrorof(SearchExecutionFailureError template) factory method to create a shallow copy SearchExecutionFailureErrorvoidsetMessage(String message) "Something went wrong during the search query execution.static com.fasterxml.jackson.core.type.TypeReference<SearchExecutionFailureError>gives a TypeReference for usage with Jackson DataBinddefault <T> Taccessor map functionMethods inherited from interface com.commercetools.api.models.error.ErrorObject
setValue, values, withErrorObject
-
Field Details
-
SEARCH_EXECUTION_FAILURE
discriminator value for SearchExecutionFailureError- See Also:
-
-
Method Details
-
getCode
Description copied from interface:ErrorObjectError identifier.
- Specified by:
getCodein interfaceErrorObject- Returns:
- code
-
getMessage
"Something went wrong during the search query execution. In most case this happens due to usage of non-existing fields and custom product attributes. Please verify all filters and facets in your search query and make sure that all paths are correct."- Specified by:
getMessagein interfaceErrorObject- Returns:
- message
-
setMessage
"Something went wrong during the search query execution. In most case this happens due to usage of non-existing fields and custom product attributes. Please verify all filters and facets in your search query and make sure that all paths are correct."- Specified by:
setMessagein interfaceErrorObject- Parameters:
message- value to be set
-
of
factory method- Returns:
- instance of SearchExecutionFailureError
-
of
factory method to create a shallow copy SearchExecutionFailureError- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
SearchExecutionFailureError copyDeep()- Specified by:
copyDeepin interfaceErrorObject
-
deepCopy
@Nullable static SearchExecutionFailureError deepCopy(@Nullable SearchExecutionFailureError template) factory method to create a deep copy of SearchExecutionFailureError- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for SearchExecutionFailureError- Returns:
- builder
-
builder
create builder for SearchExecutionFailureError instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withSearchExecutionFailureError
accessor map function- Type Parameters:
T- mapped type- Parameters:
helper- function to map the object- Returns:
- mapped value
-
typeReference
gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-