Interface QueryTimedOutError
- All Superinterfaces:
ErrorObject
Returned when the query times out.
If a query constantly times out, please check if it follows the performance best practices.
Example to create an instance using the builder pattern
QueryTimedOutError queryTimedOutError = QueryTimedOutError.builder()
.message("{message}")
.build()
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic QueryTimedOutErrorBuilder
builder()
builder factory method for QueryTimedOutErrorstatic QueryTimedOutErrorBuilder
builder
(QueryTimedOutError template) create builder for QueryTimedOutError instancestatic QueryTimedOutError
deepCopy
(QueryTimedOutError template) factory method to create a deep copy of QueryTimedOutError@NotNull String
getCode()
Error identifier.@NotNull String
"The query timed out.
static QueryTimedOutError
of()
factory methodstatic QueryTimedOutError
of
(QueryTimedOutError template) factory method to create a shallow copy QueryTimedOutErrorvoid
setMessage
(String message) "The query timed out.
static com.fasterxml.jackson.core.type.TypeReference<QueryTimedOutError>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withQueryTimedOutError
(Function<QueryTimedOutError, T> helper) accessor map functionMethods inherited from interface com.commercetools.api.models.error.ErrorObject
setValue, values, withErrorObject
-
Field Details
-
QUERY_TIMED_OUT
discriminator value for QueryTimedOutError- See Also:
-
-
Method Details
-
getCode
Description copied from interface:ErrorObject
Error identifier.
- Specified by:
getCode
in interfaceErrorObject
- Returns:
- code
-
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 interfaceErrorObject
- Returns:
- message
-
setMessage
"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 interfaceErrorObject
- Parameters:
message
- value to be set
-
of
factory method- Returns:
- instance of QueryTimedOutError
-
of
factory method to create a shallow copy QueryTimedOutError- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
factory method to create a deep copy of QueryTimedOutError- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for QueryTimedOutError- Returns:
- builder
-
builder
create builder for QueryTimedOutError instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withQueryTimedOutError
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
-