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