Interface GraphQLInvalidOperationError
- All Superinterfaces:
GraphQLErrorObject
Returned when the resources involved in the request are not in a valid state for the operation.
The client application should validate the constraints described in the error message before sending the request.
Example to create an instance using the builder pattern
GraphQLInvalidOperationError graphQLInvalidOperationError = GraphQLInvalidOperationError.builder()
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for GraphQLInvalidOperationError -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for GraphQLInvalidOperationErrorbuilder
(GraphQLInvalidOperationError template) create builder for GraphQLInvalidOperationError instancestatic GraphQLInvalidOperationError
deepCopy
(GraphQLInvalidOperationError template) factory method to create a deep copy of GraphQLInvalidOperationError@NotNull String
getCode()
One of the error codes that is listed on the Errors page.static GraphQLInvalidOperationError
of()
factory methodstatic GraphQLInvalidOperationError
of
(GraphQLInvalidOperationError template) factory method to create a shallow copy GraphQLInvalidOperationErrorstatic com.fasterxml.jackson.core.type.TypeReference<GraphQLInvalidOperationError>
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
-
INVALID_OPERATION
discriminator value for GraphQLInvalidOperationError- 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 GraphQLInvalidOperationError
-
of
factory method to create a shallow copy GraphQLInvalidOperationError- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static GraphQLInvalidOperationError deepCopy(@Nullable GraphQLInvalidOperationError template) factory method to create a deep copy of GraphQLInvalidOperationError- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for GraphQLInvalidOperationError- Returns:
- builder
-
builder
create builder for GraphQLInvalidOperationError instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withGraphQLInvalidOperationError
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
-