Interface ExtensionUpdateActionsFailedError
- All Superinterfaces:
ErrorObject
Returned when update actions could not be applied to the resource (for example, because a referenced resource does not exist). This would result in a 400 Bad Request response if the same update action was sent from a regular client.
Example to create an instance using the builder pattern
ExtensionUpdateActionsFailedError extensionUpdateActionsFailedError = ExtensionUpdateActionsFailedError.builder()
.message("{message}")
.plusExtensionErrors(extensionErrorsBuilder -> extensionErrorsBuilder)
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for ExtensionUpdateActionsFailedError -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for ExtensionUpdateActionsFailedErrorbuilder(ExtensionUpdateActionsFailedError template) create builder for ExtensionUpdateActionsFailedError instancecopyDeep()deepCopy(ExtensionUpdateActionsFailedError template) factory method to create a deep copy of ExtensionUpdateActionsFailedError@NotNull StringgetCode()Error identifier.@NotNull @Valid List<ExtensionError>Additional errors related to the API Extension.@Valid ObjectAny information that should be returned to the API caller.@Valid LocalizedStringUser-defined localized description of the error.@NotNull String"The extension returned update actions that could not be executed."of()factory methodof(ExtensionUpdateActionsFailedError template) factory method to create a shallow copy ExtensionUpdateActionsFailedErrorvoidsetExtensionErrors(ExtensionError... extensionErrors) Additional errors related to the API Extension.voidsetExtensionErrors(List<ExtensionError> extensionErrors) Additional errors related to the API Extension.voidsetExtensionExtraInfo(Object extensionExtraInfo) Any information that should be returned to the API caller.voidsetLocalizedMessage(LocalizedString localizedMessage) User-defined localized description of the error.voidsetMessage(String message) "The extension returned update actions that could not be executed."static com.fasterxml.jackson.core.type.TypeReference<ExtensionUpdateActionsFailedError>gives a TypeReference for usage with Jackson DataBinddefault <T> Taccessor map functionMethods inherited from interface com.commercetools.api.models.error.ErrorObject
setValue, values, withErrorObject
-
Field Details
-
EXTENSION_UPDATE_ACTIONS_FAILED
discriminator value for ExtensionUpdateActionsFailedError- See Also:
-
-
Method Details
-
getCode
Description copied from interface:ErrorObjectError identifier.
- Specified by:
getCodein interfaceErrorObject- Returns:
- code
-
getMessage
"The extension returned update actions that could not be executed."- Specified by:
getMessagein interfaceErrorObject- Returns:
- message
-
getLocalizedMessage
User-defined localized description of the error.
- Returns:
- localizedMessage
-
getExtensionExtraInfo
Any information that should be returned to the API caller.
- Returns:
- extensionExtraInfo
-
getExtensionErrors
Additional errors related to the API Extension.
- Returns:
- extensionErrors
-
setMessage
"The extension returned update actions that could not be executed."- Specified by:
setMessagein interfaceErrorObject- Parameters:
message- value to be set
-
setLocalizedMessage
User-defined localized description of the error.
- Parameters:
localizedMessage- value to be set
-
setExtensionExtraInfo
Any information that should be returned to the API caller.
- Parameters:
extensionExtraInfo- value to be set
-
setExtensionErrors
Additional errors related to the API Extension.
- Parameters:
extensionErrors- values to be set
-
setExtensionErrors
Additional errors related to the API Extension.
- Parameters:
extensionErrors- values to be set
-
of
factory method- Returns:
- instance of ExtensionUpdateActionsFailedError
-
of
factory method to create a shallow copy ExtensionUpdateActionsFailedError- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
ExtensionUpdateActionsFailedError copyDeep()- Specified by:
copyDeepin interfaceErrorObject
-
deepCopy
@Nullable static ExtensionUpdateActionsFailedError deepCopy(@Nullable ExtensionUpdateActionsFailedError template) factory method to create a deep copy of ExtensionUpdateActionsFailedError- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for ExtensionUpdateActionsFailedError- Returns:
- builder
-
builder
create builder for ExtensionUpdateActionsFailedError instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withExtensionUpdateActionsFailedError
default <T> T withExtensionUpdateActionsFailedError(Function<ExtensionUpdateActionsFailedError, 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<ExtensionUpdateActionsFailedError> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-