Interface GraphQLBadGatewayError
- All Superinterfaces:
GraphQLErrorObject
Returned when a server-side problem is caused by scaling infrastructure resources.
The client application should retry the request with exponential backoff up to a point where further delay is unacceptable.
Example to create an instance using the builder pattern
GraphQLBadGatewayError graphQLBadGatewayError = GraphQLBadGatewayError.builder()
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for GraphQLBadGatewayError -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for GraphQLBadGatewayErrorbuilder
(GraphQLBadGatewayError template) create builder for GraphQLBadGatewayError instancestatic GraphQLBadGatewayError
deepCopy
(GraphQLBadGatewayError template) factory method to create a deep copy of GraphQLBadGatewayError@NotNull String
getCode()
One of the error codes that is listed on the Errors page.static GraphQLBadGatewayError
of()
factory methodstatic GraphQLBadGatewayError
of
(GraphQLBadGatewayError template) factory method to create a shallow copy GraphQLBadGatewayErrorstatic com.fasterxml.jackson.core.type.TypeReference<GraphQLBadGatewayError>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
accessor map functionMethods inherited from interface com.commercetools.api.models.error.GraphQLErrorObject
setValue, values, withGraphQLErrorObject
-
Field Details
-
BAD_GATEWAY
discriminator value for GraphQLBadGatewayError- 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 GraphQLBadGatewayError
-
of
factory method to create a shallow copy GraphQLBadGatewayError- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
factory method to create a deep copy of GraphQLBadGatewayError- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for GraphQLBadGatewayError- Returns:
- builder
-
builder
create builder for GraphQLBadGatewayError instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withGraphQLBadGatewayError
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
-