Interface SearchExecutionFailureError

All Superinterfaces:
ErrorObject

public interface SearchExecutionFailureError extends 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 Details

    • SEARCH_EXECUTION_FAILURE

      static final String SEARCH_EXECUTION_FAILURE
      discriminator value for SearchExecutionFailureError
      See Also:
  • Method Details

    • getCode

      @NotNull @NotNull String getCode()
      Description copied from interface: ErrorObject

      Error identifier.

      Specified by:
      getCode in interface ErrorObject
      Returns:
      code
    • getMessage

      @NotNull @NotNull String 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 interface ErrorObject
      Returns:
      message
    • setMessage

      void setMessage(String message)

      "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 interface ErrorObject
      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

      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

      default <T> T withSearchExecutionFailureError(Function<SearchExecutionFailureError,T> helper)
      accessor map function
      Type Parameters:
      T - mapped type
      Parameters:
      helper - function to map the object
      Returns:
      mapped value
    • typeReference

      static com.fasterxml.jackson.core.type.TypeReference<SearchExecutionFailureError> typeReference()
      gives a TypeReference for usage with Jackson DataBind
      Returns:
      TypeReference