Interface GraphQLExtensionPredicateEvaluationFailedError
- All Superinterfaces:
GraphQLErrorObject
Returned when the predicate defined in the ExtensionTrigger could not be evaluated due to a missing field.
Example to create an instance using the builder pattern
GraphQLExtensionPredicateEvaluationFailedError graphQLExtensionPredicateEvaluationFailedError = GraphQLExtensionPredicateEvaluationFailedError.builder()
.errorByExtension(errorByExtensionBuilder -> errorByExtensionBuilder)
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for GraphQLExtensionPredicateEvaluationFailedError -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for GraphQLExtensionPredicateEvaluationFailedErrorcreate builder for GraphQLExtensionPredicateEvaluationFailedError instancefactory method to create a deep copy of GraphQLExtensionPredicateEvaluationFailedError@NotNull String
getCode()
One of the error codes that is listed on the Errors page.@NotNull @Valid ErrorByExtension
Details about the API Extension that was involved in the error.of()
factory methodfactory method to create a shallow copy GraphQLExtensionPredicateEvaluationFailedErrorvoid
setErrorByExtension
(ErrorByExtension errorByExtension) Details about the API Extension that was involved in the error.static com.fasterxml.jackson.core.type.TypeReference<GraphQLExtensionPredicateEvaluationFailedError>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withGraphQLExtensionPredicateEvaluationFailedError
(Function<GraphQLExtensionPredicateEvaluationFailedError, T> helper) accessor map functionMethods inherited from interface com.commercetools.api.models.error.GraphQLErrorObject
setValue, values, withGraphQLErrorObject
-
Field Details
-
EXTENSION_PREDICATE_EVALUATION_FAILED
discriminator value for GraphQLExtensionPredicateEvaluationFailedError- 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
-
getErrorByExtension
Details about the API Extension that was involved in the error.
- Returns:
- errorByExtension
-
setErrorByExtension
Details about the API Extension that was involved in the error.
- Parameters:
errorByExtension
- value to be set
-
of
factory method- Returns:
- instance of GraphQLExtensionPredicateEvaluationFailedError
-
of
static GraphQLExtensionPredicateEvaluationFailedError of(GraphQLExtensionPredicateEvaluationFailedError template) factory method to create a shallow copy GraphQLExtensionPredicateEvaluationFailedError- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static GraphQLExtensionPredicateEvaluationFailedError deepCopy(@Nullable GraphQLExtensionPredicateEvaluationFailedError template) factory method to create a deep copy of GraphQLExtensionPredicateEvaluationFailedError- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for GraphQLExtensionPredicateEvaluationFailedError- Returns:
- builder
-
builder
static GraphQLExtensionPredicateEvaluationFailedErrorBuilder builder(GraphQLExtensionPredicateEvaluationFailedError template) create builder for GraphQLExtensionPredicateEvaluationFailedError instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withGraphQLExtensionPredicateEvaluationFailedError
default <T> T withGraphQLExtensionPredicateEvaluationFailedError(Function<GraphQLExtensionPredicateEvaluationFailedError, 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<GraphQLExtensionPredicateEvaluationFailedError> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-