Interface GraphQLInternalConstraintViolatedError
- All Superinterfaces:
GraphQLErrorObject
Returned when certain API-specific constraints were not met. For example, the specified Discount Code was never applied and cannot be updated.
Example to create an instance using the builder pattern
GraphQLInternalConstraintViolatedError graphQLInternalConstraintViolatedError = GraphQLInternalConstraintViolatedError.builder()
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for GraphQLInternalConstraintViolatedError -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for GraphQLInternalConstraintViolatedErrorcreate builder for GraphQLInternalConstraintViolatedError instancefactory method to create a deep copy of GraphQLInternalConstraintViolatedError@NotNull String
getCode()
One of the error codes that is listed on the Errors page.of()
factory methodof
(GraphQLInternalConstraintViolatedError template) factory method to create a shallow copy GraphQLInternalConstraintViolatedErrorstatic com.fasterxml.jackson.core.type.TypeReference<GraphQLInternalConstraintViolatedError>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withGraphQLInternalConstraintViolatedError
(Function<GraphQLInternalConstraintViolatedError, T> helper) accessor map functionMethods inherited from interface com.commercetools.api.models.error.GraphQLErrorObject
setValue, values, withGraphQLErrorObject
-
Field Details
-
INTERNAL_CONSTRAINT_VIOLATED
discriminator value for GraphQLInternalConstraintViolatedError- 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 GraphQLInternalConstraintViolatedError
-
of
factory method to create a shallow copy GraphQLInternalConstraintViolatedError- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static GraphQLInternalConstraintViolatedError deepCopy(@Nullable GraphQLInternalConstraintViolatedError template) factory method to create a deep copy of GraphQLInternalConstraintViolatedError- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for GraphQLInternalConstraintViolatedError- Returns:
- builder
-
builder
static GraphQLInternalConstraintViolatedErrorBuilder builder(GraphQLInternalConstraintViolatedError template) create builder for GraphQLInternalConstraintViolatedError instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withGraphQLInternalConstraintViolatedError
default <T> T withGraphQLInternalConstraintViolatedError(Function<GraphQLInternalConstraintViolatedError, T> helper) accessor map function- Type Parameters:
T
- mapped type- Parameters:
helper
- function to map the object- Returns:
- mapped value
-
typeReference
static com.fasterxml.jackson.core.type.TypeReference<GraphQLInternalConstraintViolatedError> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-