Class ReferenceExistsErrorImpl
java.lang.Object
com.commercetools.api.models.error.ReferenceExistsErrorImpl
- All Implemented Interfaces:
ErrorObject
,ReferenceExistsError
,io.vrap.rmf.base.client.ModelBase
public class ReferenceExistsErrorImpl
extends Object
implements ReferenceExistsError, io.vrap.rmf.base.client.ModelBase
Returned when a resource cannot be deleted because it is being referenced by another resource.
-
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.ReferenceExistsError
REFERENCE_EXISTS
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
getCode()
Error identifier."Can not delete a $resource while it is referenced by at least one $referencedBy."
Type of referenced resource.int
hashCode()
void
setMessage
(String message) "Can not delete a $resource while it is referenced by at least one $referencedBy."
void
setReferencedBy
(ReferenceTypeId referencedBy) Type of referenced resource.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.ErrorObject
withErrorObject
Methods inherited from interface io.vrap.rmf.base.client.ModelBase
reflectionString, reflectionString
Methods inherited from interface com.commercetools.api.models.error.ReferenceExistsError
withReferenceExistsError
-
Constructor Details
-
ReferenceExistsErrorImpl
public ReferenceExistsErrorImpl()create empty instance
-
-
Method Details
-
getCode
Description copied from interface:ErrorObject
Error identifier.
- Specified by:
getCode
in interfaceErrorObject
- Specified by:
getCode
in interfaceReferenceExistsError
- Returns:
- code
-
getMessage
"Can not delete a $resource while it is referenced by at least one $referencedBy."
- Specified by:
getMessage
in interfaceErrorObject
- Specified by:
getMessage
in interfaceReferenceExistsError
- Returns:
- message
-
values
Error-specific additional fields.
- Specified by:
values
in interfaceErrorObject
- Returns:
- map of the pattern property values
-
getReferencedBy
Type of referenced resource.
- Specified by:
getReferencedBy
in interfaceReferenceExistsError
- Returns:
- referencedBy
-
setMessage
Description copied from interface:ReferenceExistsError
"Can not delete a $resource while it is referenced by at least one $referencedBy."
- Specified by:
setMessage
in interfaceErrorObject
- Specified by:
setMessage
in interfaceReferenceExistsError
- 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
-
setReferencedBy
Description copied from interface:ReferenceExistsError
Type of referenced resource.
- Specified by:
setReferencedBy
in interfaceReferenceExistsError
- Parameters:
referencedBy
- value to be set
-
equals
-
hashCode
-