Class QueryTimedOutErrorImpl

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

public class QueryTimedOutErrorImpl extends Object implements QueryTimedOutError, io.vrap.rmf.base.client.ModelBase

Returned when the query times out.

If a query constantly times out, please check if it follows the performance best practices.

  • Constructor Details

    • QueryTimedOutErrorImpl

      public QueryTimedOutErrorImpl()
      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 QueryTimedOutError
      Returns:
      code
    • getMessage

      public String getMessage()

      "The query timed out. If your query constantly times out, please check that it follows the performance best practices (see https://docs.commercetools.com/api/predicates/query#performance-considerations)."

      Specified by:
      getMessage in interface ErrorObject
      Specified by:
      getMessage in interface QueryTimedOutError
      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: QueryTimedOutError

      "The query timed out. If your query constantly times out, please check that it follows the performance best practices (see https://docs.commercetools.com/api/predicates/query#performance-considerations)."

      Specified by:
      setMessage in interface ErrorObject
      Specified by:
      setMessage in interface QueryTimedOutError
      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