Interface GraphQLSemanticErrorError
- All Superinterfaces:
GraphQLErrorObject
Returned when a Discount predicate or API Extension predicate is not semantically correct.
Example to create an instance using the builder pattern
GraphQLSemanticErrorError graphQLSemanticErrorError = GraphQLSemanticErrorError.builder()
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for GraphQLSemanticErrorError -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for GraphQLSemanticErrorErrorbuilder
(GraphQLSemanticErrorError template) create builder for GraphQLSemanticErrorError instancestatic GraphQLSemanticErrorError
deepCopy
(GraphQLSemanticErrorError template) factory method to create a deep copy of GraphQLSemanticErrorError@NotNull String
getCode()
Error identifier.static GraphQLSemanticErrorError
of()
factory methodstatic GraphQLSemanticErrorError
of
(GraphQLSemanticErrorError template) factory method to create a shallow copy GraphQLSemanticErrorErrorstatic com.fasterxml.jackson.core.type.TypeReference<GraphQLSemanticErrorError>
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
-
SEMANTIC_ERROR
discriminator value for GraphQLSemanticErrorError- See Also:
-
-
Method Details
-
getCode
Description copied from interface:GraphQLErrorObject
Error identifier.
- Specified by:
getCode
in interfaceGraphQLErrorObject
- Returns:
- code
-
of
factory method- Returns:
- instance of GraphQLSemanticErrorError
-
of
factory method to create a shallow copy GraphQLSemanticErrorError- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
factory method to create a deep copy of GraphQLSemanticErrorError- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for GraphQLSemanticErrorError- Returns:
- builder
-
builder
create builder for GraphQLSemanticErrorError instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withGraphQLSemanticErrorError
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
-