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
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for GraphQLInvalidOperationError -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for GraphQLInvalidOperationErrorbuilder(GraphQLInvalidOperationError template) create builder for GraphQLInvalidOperationError instancecopyDeep()static GraphQLInvalidOperationErrordeepCopy(GraphQLInvalidOperationError template) factory method to create a deep copy of GraphQLInvalidOperationError@NotNull StringgetCode()One of the error codes that is listed on the Errors page.static GraphQLInvalidOperationErrorof()factory methodstatic GraphQLInvalidOperationErrorof(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> Taccessor 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:GraphQLErrorObjectOne of the error codes that is listed on the Errors page.
- Specified by:
getCodein 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
-
copyDeep
GraphQLInvalidOperationError copyDeep()- Specified by:
copyDeepin interfaceGraphQLErrorObject
-
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
-