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
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic QueryTimedOutErrorBuilderbuilder()builder factory method for QueryTimedOutErrorstatic QueryTimedOutErrorBuilderbuilder(QueryTimedOutError template) create builder for QueryTimedOutError instancecopyDeep()static QueryTimedOutErrordeepCopy(QueryTimedOutError template) factory method to create a deep copy of QueryTimedOutError@NotNull StringgetCode()Error identifier.@NotNull String"The query timed out.static QueryTimedOutErrorof()factory methodstatic QueryTimedOutErrorof(QueryTimedOutError template) factory method to create a shallow copy QueryTimedOutErrorvoidsetMessage(String message) "The query timed out.static com.fasterxml.jackson.core.type.TypeReference<QueryTimedOutError>gives a TypeReference for usage with Jackson DataBinddefault <T> TwithQueryTimedOutError(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:ErrorObjectError identifier.
- Specified by:
getCodein 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:
getMessagein 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:
setMessagein 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
-
copyDeep
QueryTimedOutError copyDeep()- Specified by:
copyDeepin interfaceErrorObject
-
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
-