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
Modifier and TypeFieldDescriptionstatic final String
discriminator value for SearchExecutionFailureError -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for SearchExecutionFailureErrorbuilder
(SearchExecutionFailureError template) create builder for SearchExecutionFailureError instancestatic SearchExecutionFailureError
deepCopy
(SearchExecutionFailureError template) factory method to create a deep copy of SearchExecutionFailureError@NotNull String
getCode()
Error identifier.@NotNull String
"Something went wrong during the search query execution.
static SearchExecutionFailureError
of()
factory methodstatic SearchExecutionFailureError
of
(SearchExecutionFailureError template) factory method to create a shallow copy SearchExecutionFailureErrorvoid
setMessage
(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> T
accessor 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:ErrorObject
Error identifier.
- Specified by:
getCode
in 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:
getMessage
in 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:
setMessage
in 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
-
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
-