Class AttributeNameDoesNotExistErrorImpl
java.lang.Object
com.commercetools.api.models.error.AttributeNameDoesNotExistErrorImpl
- All Implemented Interfaces:
AttributeNameDoesNotExistError
,ErrorObject
,io.vrap.rmf.base.client.ModelBase
public class AttributeNameDoesNotExistErrorImpl
extends Object
implements AttributeNameDoesNotExistError, io.vrap.rmf.base.client.ModelBase
Returned when an AttributeDefinition does not exist for an Attribute name
.
The error is returned as a failed response to the Change AttributeDefinition Name 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.AttributeNameDoesNotExistError
ATTRIBUTE_NAME_DOES_NOT_EXIST
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
getCode()
Error identifier.Non-existent Attribute name."Attribute definition for $attributeName does not exist on type $typeName."
int
hashCode()
void
setInvalidAttributeName
(String invalidAttributeName) Non-existent Attribute name.void
setMessage
(String message) "Attribute definition for $attributeName does not exist on type $typeName."
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.AttributeNameDoesNotExistError
withAttributeNameDoesNotExistError
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
-
AttributeNameDoesNotExistErrorImpl
public AttributeNameDoesNotExistErrorImpl()create empty instance
-
-
Method Details
-
getCode
Description copied from interface:ErrorObject
Error identifier.
- Specified by:
getCode
in interfaceAttributeNameDoesNotExistError
- Specified by:
getCode
in interfaceErrorObject
- Returns:
- code
-
getMessage
"Attribute definition for $attributeName does not exist on type $typeName."
- Specified by:
getMessage
in interfaceAttributeNameDoesNotExistError
- Specified by:
getMessage
in interfaceErrorObject
- Returns:
- message
-
values
Error-specific additional fields.
- Specified by:
values
in interfaceErrorObject
- Returns:
- map of the pattern property values
-
getInvalidAttributeName
Non-existent Attribute name.
- Specified by:
getInvalidAttributeName
in interfaceAttributeNameDoesNotExistError
- Returns:
- invalidAttributeName
-
setMessage
Description copied from interface:AttributeNameDoesNotExistError
"Attribute definition for $attributeName does not exist on type $typeName."
- Specified by:
setMessage
in interfaceAttributeNameDoesNotExistError
- 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
-
setInvalidAttributeName
Description copied from interface:AttributeNameDoesNotExistError
Non-existent Attribute name.
- Specified by:
setInvalidAttributeName
in interfaceAttributeNameDoesNotExistError
- Parameters:
invalidAttributeName
- value to be set
-
equals
-
hashCode
-