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
Modifier and TypeFieldDescriptionstatic final String
discriminator value for ExtensionUpdateActionsFailedError -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for ExtensionUpdateActionsFailedErrorbuilder
(ExtensionUpdateActionsFailedError template) create builder for ExtensionUpdateActionsFailedError instancedeepCopy
(ExtensionUpdateActionsFailedError template) factory method to create a deep copy of ExtensionUpdateActionsFailedError@NotNull String
getCode()
Error identifier.@NotNull @Valid List<ExtensionError>
Additional errors related to the API Extension.@Valid Object
Any information that should be returned to the API caller.@Valid LocalizedString
User-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 ExtensionUpdateActionsFailedErrorvoid
setExtensionErrors
(ExtensionError... extensionErrors) Additional errors related to the API Extension.void
setExtensionErrors
(List<ExtensionError> extensionErrors) Additional errors related to the API Extension.void
setExtensionExtraInfo
(Object extensionExtraInfo) Any information that should be returned to the API caller.void
setLocalizedMessage
(LocalizedString localizedMessage) User-defined localized description of the error.void
setMessage
(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> T
accessor 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:ErrorObject
Error identifier.
- Specified by:
getCode
in interfaceErrorObject
- Returns:
- code
-
getMessage
"The extension returned update actions that could not be executed."
- Specified by:
getMessage
in 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:
setMessage
in 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
-
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
-