Interface PendingOperationError
- All Superinterfaces:
ErrorObject
Returned when a previous conflicting operation is still pending and needs to finish before the request can succeed.
The client application should retry the request with exponential backoff up to a point where further delay is unacceptable. If the error persists, report it to the Composable Commerce support team.
Example to create an instance using the builder pattern
PendingOperationError pendingOperationError = PendingOperationError.builder()
.message("{message}")
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for PendingOperationError -
Method Summary
Modifier and TypeMethodDescriptionstatic PendingOperationErrorBuilder
builder()
builder factory method for PendingOperationErrorstatic PendingOperationErrorBuilder
builder
(PendingOperationError template) create builder for PendingOperationError instancestatic PendingOperationError
deepCopy
(PendingOperationError template) factory method to create a deep copy of PendingOperationError@NotNull String
getCode()
Error identifier.@NotNull String
Plain text description of the error.static PendingOperationError
of()
factory methodstatic PendingOperationError
of
(PendingOperationError template) factory method to create a shallow copy PendingOperationErrorvoid
setMessage
(String message) Plain text description of the error.static com.fasterxml.jackson.core.type.TypeReference<PendingOperationError>
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
-
PENDING_OPERATION
discriminator value for PendingOperationError- See Also:
-
-
Method Details
-
getCode
Description copied from interface:ErrorObject
Error identifier.
- Specified by:
getCode
in interfaceErrorObject
- Returns:
- code
-
getMessage
Plain text description of the error.
- Specified by:
getMessage
in interfaceErrorObject
- Returns:
- message
-
setMessage
Plain text description of the error.
- Specified by:
setMessage
in interfaceErrorObject
- Parameters:
message
- value to be set
-
of
factory method- Returns:
- instance of PendingOperationError
-
of
factory method to create a shallow copy PendingOperationError- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
factory method to create a deep copy of PendingOperationError- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for PendingOperationError- Returns:
- builder
-
builder
create builder for PendingOperationError instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withPendingOperationError
accessor map function- Type Parameters:
T
- mapped type- Parameters:
helper
- function to map the object- Returns:
- mapped value
-
typeReference
gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-