Class DuplicatePriceKeyErrorImpl
java.lang.Object
com.commercetools.api.models.error.DuplicatePriceKeyErrorImpl
- All Implemented Interfaces:
DuplicatePriceKeyError
,ErrorObject
,io.vrap.rmf.base.client.ModelBase
public class DuplicatePriceKeyErrorImpl
extends Object
implements DuplicatePriceKeyError, io.vrap.rmf.base.client.ModelBase
Returned when a Price key conflicts with an existing key.
Keys of Embedded Prices must be unique per ProductVariant.
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.vrap.rmf.base.client.ModelBase
io.vrap.rmf.base.client.ModelBase.FilteredRecursiveToStringStyle
-
Field Summary
Fields inherited from interface com.commercetools.api.models.error.DuplicatePriceKeyError
DUPLICATE_PRICE_KEY
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
getCode()
Error identifier.Conflicting Embedded Price."Duplicate price key: $priceKey.
int
hashCode()
void
setConflictingPrice
(Price conflictingPrice) Conflicting Embedded Price.void
setMessage
(String message) "Duplicate price key: $priceKey.
void
Error-specific additional fields.values()
Error-specific additional fields.Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.commercetools.api.models.error.DuplicatePriceKeyError
withDuplicatePriceKeyError
Methods inherited from interface com.commercetools.api.models.error.ErrorObject
withErrorObject
Methods inherited from interface io.vrap.rmf.base.client.ModelBase
reflectionString, reflectionString
-
Constructor Details
-
DuplicatePriceKeyErrorImpl
public DuplicatePriceKeyErrorImpl()create empty instance
-
-
Method Details
-
getCode
Description copied from interface:ErrorObject
Error identifier.
- Specified by:
getCode
in interfaceDuplicatePriceKeyError
- Specified by:
getCode
in interfaceErrorObject
- Returns:
- code
-
getMessage
"Duplicate price key: $priceKey. The price key must be unique per variant."
- Specified by:
getMessage
in interfaceDuplicatePriceKeyError
- Specified by:
getMessage
in interfaceErrorObject
- Returns:
- message
-
values
Error-specific additional fields.
- Specified by:
values
in interfaceErrorObject
- Returns:
- map of the pattern property values
-
getConflictingPrice
Conflicting Embedded Price.
- Specified by:
getConflictingPrice
in interfaceDuplicatePriceKeyError
- Returns:
- conflictingPrice
-
setMessage
Description copied from interface:DuplicatePriceKeyError
"Duplicate price key: $priceKey. The price key must be unique per variant."
- Specified by:
setMessage
in interfaceDuplicatePriceKeyError
- Specified by:
setMessage
in interfaceErrorObject
- Parameters:
message
- value to be set
-
setValue
Description copied from interface:ErrorObject
Error-specific additional fields.
- Specified by:
setValue
in interfaceErrorObject
- Parameters:
key
- property namevalue
- property value
-
setConflictingPrice
Description copied from interface:DuplicatePriceKeyError
Conflicting Embedded Price.
- Specified by:
setConflictingPrice
in interfaceDuplicatePriceKeyError
- Parameters:
conflictingPrice
- value to be set
-
equals
-
hashCode
-