Class EnumKeyDoesNotExistErrorImpl
java.lang.Object
com.commercetools.api.models.error.EnumKeyDoesNotExistErrorImpl
- All Implemented Interfaces:
EnumKeyDoesNotExistError
,ErrorObject
,io.vrap.rmf.base.client.ModelBase
public class EnumKeyDoesNotExistErrorImpl
extends Object
implements EnumKeyDoesNotExistError, io.vrap.rmf.base.client.ModelBase
Returned when an AttributeEnumType or AttributeLocalizedEnumType already contains a value with the given key.
The error is returned as a failed response to the Change the key of an EnumValue update action.
-
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.EnumKeyDoesNotExistError
ENUM_KEY_DOES_NOT_EXIST
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
getCode()
Error identifier.Name of the conflicting Attribute.Conflicting enum key."The $fieldName field definition does not contain an enum value with the key $enumKey."
int
hashCode()
void
setConflictingAttributeName
(String conflictingAttributeName) Name of the conflicting Attribute.void
setConflictingEnumKey
(String conflictingEnumKey) Conflicting enum key.void
setMessage
(String message) "The $fieldName field definition does not contain an enum value with the key $enumKey."
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.EnumKeyDoesNotExistError
withEnumKeyDoesNotExistError
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
-
EnumKeyDoesNotExistErrorImpl
public EnumKeyDoesNotExistErrorImpl()create empty instance
-
-
Method Details
-
getCode
Description copied from interface:ErrorObject
Error identifier.
- Specified by:
getCode
in interfaceEnumKeyDoesNotExistError
- Specified by:
getCode
in interfaceErrorObject
- Returns:
- code
-
getMessage
"The $fieldName field definition does not contain an enum value with the key $enumKey."
- Specified by:
getMessage
in interfaceEnumKeyDoesNotExistError
- Specified by:
getMessage
in interfaceErrorObject
- Returns:
- message
-
values
Error-specific additional fields.
- Specified by:
values
in interfaceErrorObject
- Returns:
- map of the pattern property values
-
getConflictingEnumKey
Conflicting enum key.
- Specified by:
getConflictingEnumKey
in interfaceEnumKeyDoesNotExistError
- Returns:
- conflictingEnumKey
-
getConflictingAttributeName
Name of the conflicting Attribute.
- Specified by:
getConflictingAttributeName
in interfaceEnumKeyDoesNotExistError
- Returns:
- conflictingAttributeName
-
setMessage
Description copied from interface:EnumKeyDoesNotExistError
"The $fieldName field definition does not contain an enum value with the key $enumKey."
- Specified by:
setMessage
in interfaceEnumKeyDoesNotExistError
- 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
-
setConflictingEnumKey
Description copied from interface:EnumKeyDoesNotExistError
Conflicting enum key.
- Specified by:
setConflictingEnumKey
in interfaceEnumKeyDoesNotExistError
- Parameters:
conflictingEnumKey
- value to be set
-
setConflictingAttributeName
Description copied from interface:EnumKeyDoesNotExistError
Name of the conflicting Attribute.
- Specified by:
setConflictingAttributeName
in interfaceEnumKeyDoesNotExistError
- Parameters:
conflictingAttributeName
- value to be set
-
equals
-
hashCode
-