Class SearchExecutionFailureErrorImpl

java.lang.Object
com.commercetools.api.models.error.SearchExecutionFailureErrorImpl
All Implemented Interfaces:
ErrorObject, SearchExecutionFailureError, io.vrap.rmf.base.client.ModelBase

public class SearchExecutionFailureErrorImpl extends Object implements SearchExecutionFailureError, io.vrap.rmf.base.client.ModelBase

Returned when a search query could not be completed due to an unexpected failure.

  • Constructor Details

    • SearchExecutionFailureErrorImpl

      public SearchExecutionFailureErrorImpl()
      create empty instance
  • Method Details

    • getCode

      public String getCode()
      Description copied from interface: ErrorObject

      Error identifier.

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

      public 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
      Specified by:
      getMessage in interface SearchExecutionFailureError
      Returns:
      message
    • values

      public Map<String,Object> values()

      Error-specific additional fields.

      Specified by:
      values in interface ErrorObject
      Returns:
      map of the pattern property values
    • setMessage

      public void setMessage(String message)
      Description copied from interface: SearchExecutionFailureError

      "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
      Specified by:
      setMessage in interface SearchExecutionFailureError
      Parameters:
      message - value to be set
    • setValue

      public void setValue(String key, Object value)
      Description copied from interface: ErrorObject

      Error-specific additional fields.

      Specified by:
      setValue in interface ErrorObject
      Parameters:
      key - property name
      value - property value
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object