Interface GraphQLSyntaxErrorError
- All Superinterfaces:
GraphQLErrorObject
Returned when a Discount predicate, API Extension predicate, or search query does not have the correct syntax.
Example to create an instance using the builder pattern
GraphQLSyntaxErrorError graphQLSyntaxErrorError = GraphQLSyntaxErrorError.builder()
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for GraphQLSyntaxErrorError -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for GraphQLSyntaxErrorErrorbuilder
(GraphQLSyntaxErrorError template) create builder for GraphQLSyntaxErrorError instancestatic GraphQLSyntaxErrorError
deepCopy
(GraphQLSyntaxErrorError template) factory method to create a deep copy of GraphQLSyntaxErrorError@NotNull String
getCode()
One of the error codes that is listed on the Errors page.static GraphQLSyntaxErrorError
of()
factory methodstatic GraphQLSyntaxErrorError
of
(GraphQLSyntaxErrorError template) factory method to create a shallow copy GraphQLSyntaxErrorErrorstatic com.fasterxml.jackson.core.type.TypeReference<GraphQLSyntaxErrorError>
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
-
SYNTAX_ERROR
discriminator value for GraphQLSyntaxErrorError- 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 GraphQLSyntaxErrorError
-
of
factory method to create a shallow copy GraphQLSyntaxErrorError- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
factory method to create a deep copy of GraphQLSyntaxErrorError- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for GraphQLSyntaxErrorError- Returns:
- builder
-
builder
create builder for GraphQLSyntaxErrorError instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withGraphQLSyntaxErrorError
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
-