Interface LockedFieldError
- All Superinterfaces:
ErrorObject
Returned when two Customers are simultaneously created or updated with the same email address.
To confirm if the operation was successful, repeat the request.
Example to create an instance using the builder pattern
LockedFieldError lockedFieldError = LockedFieldError.builder()
.message("{message}")
.field("{field}")
.build()
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic LockedFieldErrorBuilder
builder()
builder factory method for LockedFieldErrorstatic LockedFieldErrorBuilder
builder
(LockedFieldError template) create builder for LockedFieldError instancestatic LockedFieldError
deepCopy
(LockedFieldError template) factory method to create a deep copy of LockedFieldError@NotNull String
getCode()
Error identifier.@NotNull String
getField()
Field that is currently locked.@NotNull String
"'$field' is locked by another request.
static LockedFieldError
of()
factory methodstatic LockedFieldError
of
(LockedFieldError template) factory method to create a shallow copy LockedFieldErrorvoid
Field that is currently locked.void
setMessage
(String message) "'$field' is locked by another request.
static com.fasterxml.jackson.core.type.TypeReference<LockedFieldError>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withLockedFieldError
(Function<LockedFieldError, T> helper) accessor map functionMethods inherited from interface com.commercetools.api.models.error.ErrorObject
setValue, values, withErrorObject
-
Field Details
-
LOCKED_FIELD
discriminator value for LockedFieldError- See Also:
-
-
Method Details
-
getField
Field that is currently locked.
- Returns:
- field
-
getCode
Description copied from interface:ErrorObject
Error identifier.
- Specified by:
getCode
in interfaceErrorObject
- Returns:
- code
-
getMessage
"'$field' is locked by another request. Please try again later."
- Specified by:
getMessage
in interfaceErrorObject
- Returns:
- message
-
setField
Field that is currently locked.
- Parameters:
field
- value to be set
-
setMessage
"'$field' is locked by another request. Please try again later."
- Specified by:
setMessage
in interfaceErrorObject
- Parameters:
message
- value to be set
-
of
factory method- Returns:
- instance of LockedFieldError
-
of
factory method to create a shallow copy LockedFieldError- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
factory method to create a deep copy of LockedFieldError- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for LockedFieldError- Returns:
- builder
-
builder
create builder for LockedFieldError instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withLockedFieldError
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
-