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
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for PendingOperationError -
Method Summary
Modifier and TypeMethodDescriptionstatic PendingOperationErrorBuilderbuilder()builder factory method for PendingOperationErrorstatic PendingOperationErrorBuilderbuilder(PendingOperationError template) create builder for PendingOperationError instancecopyDeep()static PendingOperationErrordeepCopy(PendingOperationError template) factory method to create a deep copy of PendingOperationError@NotNull StringgetCode()Error identifier.@NotNull StringPlain text description of the error.static PendingOperationErrorof()factory methodstatic PendingOperationErrorof(PendingOperationError template) factory method to create a shallow copy PendingOperationErrorvoidsetMessage(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> Taccessor 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:ErrorObjectError identifier.
- Specified by:
getCodein interfaceErrorObject- Returns:
- code
-
getMessage
Plain text description of the error.
- Specified by:
getMessagein interfaceErrorObject- Returns:
- message
-
setMessage
Plain text description of the error.
- Specified by:
setMessagein 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
-
copyDeep
PendingOperationError copyDeep()- Specified by:
copyDeepin interfaceErrorObject
-
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
-