Interface GraphQLObjectNotFoundError
- All Superinterfaces:
GraphQLErrorObject
Returned if the requested resource was not found or the Product Search index is inactive.
Example to create an instance using the builder pattern
GraphQLObjectNotFoundError graphQLObjectNotFoundError = GraphQLObjectNotFoundError.builder()
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for GraphQLObjectNotFoundError -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for GraphQLObjectNotFoundErrorbuilder
(GraphQLObjectNotFoundError template) create builder for GraphQLObjectNotFoundError instancestatic GraphQLObjectNotFoundError
deepCopy
(GraphQLObjectNotFoundError template) factory method to create a deep copy of GraphQLObjectNotFoundError@NotNull String
getCode()
One of the error codes that is listed on the Errors page.static GraphQLObjectNotFoundError
of()
factory methodstatic GraphQLObjectNotFoundError
of
(GraphQLObjectNotFoundError template) factory method to create a shallow copy GraphQLObjectNotFoundErrorstatic com.fasterxml.jackson.core.type.TypeReference<GraphQLObjectNotFoundError>
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
-
OBJECT_NOT_FOUND
discriminator value for GraphQLObjectNotFoundError- 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 GraphQLObjectNotFoundError
-
of
factory method to create a shallow copy GraphQLObjectNotFoundError- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
factory method to create a deep copy of GraphQLObjectNotFoundError- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for GraphQLObjectNotFoundError- Returns:
- builder
-
builder
create builder for GraphQLObjectNotFoundError instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withGraphQLObjectNotFoundError
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
-