Interface GraphQLExtensionUpdateActionsFailedError
- All Superinterfaces:
GraphQLErrorObject
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
GraphQLExtensionUpdateActionsFailedError graphQLExtensionUpdateActionsFailedError = GraphQLExtensionUpdateActionsFailedError.builder()
.plusExtensionErrors(extensionErrorsBuilder -> extensionErrorsBuilder)
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for GraphQLExtensionUpdateActionsFailedError -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for GraphQLExtensionUpdateActionsFailedErrorcreate builder for GraphQLExtensionUpdateActionsFailedError instancefactory method to create a deep copy of GraphQLExtensionUpdateActionsFailedError@NotNull String
getCode()
One of the error codes that is listed on the Errors page.@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.of()
factory methodof
(GraphQLExtensionUpdateActionsFailedError template) factory method to create a shallow copy GraphQLExtensionUpdateActionsFailedErrorvoid
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.static com.fasterxml.jackson.core.type.TypeReference<GraphQLExtensionUpdateActionsFailedError>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withGraphQLExtensionUpdateActionsFailedError
(Function<GraphQLExtensionUpdateActionsFailedError, T> helper) accessor map functionMethods inherited from interface com.commercetools.api.models.error.GraphQLErrorObject
setValue, values, withGraphQLErrorObject
-
Field Details
-
EXTENSION_UPDATE_ACTIONS_FAILED
discriminator value for GraphQLExtensionUpdateActionsFailedError- 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
-
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
-
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 GraphQLExtensionUpdateActionsFailedError
-
of
static GraphQLExtensionUpdateActionsFailedError of(GraphQLExtensionUpdateActionsFailedError template) factory method to create a shallow copy GraphQLExtensionUpdateActionsFailedError- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static GraphQLExtensionUpdateActionsFailedError deepCopy(@Nullable GraphQLExtensionUpdateActionsFailedError template) factory method to create a deep copy of GraphQLExtensionUpdateActionsFailedError- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for GraphQLExtensionUpdateActionsFailedError- Returns:
- builder
-
builder
static GraphQLExtensionUpdateActionsFailedErrorBuilder builder(GraphQLExtensionUpdateActionsFailedError template) create builder for GraphQLExtensionUpdateActionsFailedError instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withGraphQLExtensionUpdateActionsFailedError
default <T> T withGraphQLExtensionUpdateActionsFailedError(Function<GraphQLExtensionUpdateActionsFailedError, 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<GraphQLExtensionUpdateActionsFailedError> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-