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
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for GraphQLExtensionPredicateEvaluationFailedError -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for GraphQLExtensionPredicateEvaluationFailedErrorcreate builder for GraphQLExtensionPredicateEvaluationFailedError instancecopyDeep()factory method to create a deep copy of GraphQLExtensionPredicateEvaluationFailedError@NotNull StringgetCode()One of the error codes that is listed on the Errors page.@NotNull @Valid ErrorByExtensionDetails about the API Extension that was involved in the error.of()factory methodfactory method to create a shallow copy GraphQLExtensionPredicateEvaluationFailedErrorvoidsetErrorByExtension(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> TwithGraphQLExtensionPredicateEvaluationFailedError(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:GraphQLErrorObjectOne of the error codes that is listed on the Errors page.
- Specified by:
getCodein 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
-
copyDeep
- Specified by:
copyDeepin interfaceGraphQLErrorObject
-
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
-