Interface ExtensionPredicateEvaluationFailedError
- All Superinterfaces:
ErrorObject
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
ExtensionPredicateEvaluationFailedError extensionPredicateEvaluationFailedError = ExtensionPredicateEvaluationFailedError.builder()
.message("{message}")
.errorByExtension(errorByExtensionBuilder -> errorByExtensionBuilder)
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for ExtensionPredicateEvaluationFailedError -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for ExtensionPredicateEvaluationFailedErrorcreate builder for ExtensionPredicateEvaluationFailedError instancefactory method to create a deep copy of ExtensionPredicateEvaluationFailedError@NotNull String
getCode()
Error identifier.@NotNull @Valid ErrorByExtension
Details about the API Extension that was involved in the error.@NotNull String
"The compared field $fieldName is not present."
of()
factory methodof
(ExtensionPredicateEvaluationFailedError template) factory method to create a shallow copy ExtensionPredicateEvaluationFailedErrorvoid
setErrorByExtension
(ErrorByExtension errorByExtension) Details about the API Extension that was involved in the error.void
setMessage
(String message) "The compared field $fieldName is not present."
static com.fasterxml.jackson.core.type.TypeReference<ExtensionPredicateEvaluationFailedError>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withExtensionPredicateEvaluationFailedError
(Function<ExtensionPredicateEvaluationFailedError, T> helper) accessor map functionMethods inherited from interface com.commercetools.api.models.error.ErrorObject
setValue, values, withErrorObject
-
Field Details
-
EXTENSION_PREDICATE_EVALUATION_FAILED
discriminator value for ExtensionPredicateEvaluationFailedError- See Also:
-
-
Method Details
-
getCode
Description copied from interface:ErrorObject
Error identifier.
- Specified by:
getCode
in interfaceErrorObject
- Returns:
- code
-
getMessage
"The compared field $fieldName is not present."
- Specified by:
getMessage
in interfaceErrorObject
- Returns:
- message
-
getErrorByExtension
Details about the API Extension that was involved in the error.
- Returns:
- errorByExtension
-
setMessage
"The compared field $fieldName is not present."
- Specified by:
setMessage
in interfaceErrorObject
- Parameters:
message
- value to be set
-
setErrorByExtension
Details about the API Extension that was involved in the error.
- Parameters:
errorByExtension
- value to be set
-
of
factory method- Returns:
- instance of ExtensionPredicateEvaluationFailedError
-
of
factory method to create a shallow copy ExtensionPredicateEvaluationFailedError- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static ExtensionPredicateEvaluationFailedError deepCopy(@Nullable ExtensionPredicateEvaluationFailedError template) factory method to create a deep copy of ExtensionPredicateEvaluationFailedError- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for ExtensionPredicateEvaluationFailedError- Returns:
- builder
-
builder
static ExtensionPredicateEvaluationFailedErrorBuilder builder(ExtensionPredicateEvaluationFailedError template) create builder for ExtensionPredicateEvaluationFailedError instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withExtensionPredicateEvaluationFailedError
default <T> T withExtensionPredicateEvaluationFailedError(Function<ExtensionPredicateEvaluationFailedError, 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<ExtensionPredicateEvaluationFailedError> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-