Interface GraphQLTooManyRequestsError
- All Superinterfaces:
GraphQLErrorObject
Returned when the Query Records request exceeds the rate limit.
Reduce the date range and resource types in your query to minimize the token usage, or retry the request after some time (indicated in the Retry-After
header).
Example to create an instance using the builder pattern
GraphQLTooManyRequestsError graphQLTooManyRequestsError = GraphQLTooManyRequestsError.builder()
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
discriminator value for GraphQLTooManyRequestsError -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for GraphQLTooManyRequestsErrorbuilder
(GraphQLTooManyRequestsError template) create builder for GraphQLTooManyRequestsError instancecopyDeep()
static GraphQLTooManyRequestsError
deepCopy
(GraphQLTooManyRequestsError template) factory method to create a deep copy of GraphQLTooManyRequestsError@NotNull String
getCode()
One of the error codes that is listed on the Errors page.static GraphQLTooManyRequestsError
of()
factory methodstatic GraphQLTooManyRequestsError
of
(GraphQLTooManyRequestsError template) factory method to create a shallow copy GraphQLTooManyRequestsErrorstatic com.fasterxml.jackson.core.type.TypeReference<GraphQLTooManyRequestsError>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
accessor map functionMethods inherited from interface com.commercetools.history.models.error.GraphQLErrorObject
setValue, values, withGraphQLErrorObject
-
Field Details
-
TOO_MANY_REQUESTS
discriminator value for GraphQLTooManyRequestsError- See Also:
-
-
Method Details
-
getCode
Description copied from interface:GraphQLErrorObject
One of the error codes that is listed on the Errors page.
- Specified by:
getCode
in interfaceGraphQLErrorObject
- Returns:
- code
-
of
factory method- Returns:
- instance of GraphQLTooManyRequestsError
-
of
factory method to create a shallow copy GraphQLTooManyRequestsError- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
copyDeep
GraphQLTooManyRequestsError copyDeep()- Specified by:
copyDeep
in interfaceGraphQLErrorObject
-
deepCopy
@Nullable static GraphQLTooManyRequestsError deepCopy(@Nullable GraphQLTooManyRequestsError template) factory method to create a deep copy of GraphQLTooManyRequestsError- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for GraphQLTooManyRequestsError- Returns:
- builder
-
builder
create builder for GraphQLTooManyRequestsError instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withGraphQLTooManyRequestsError
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
-