Class MaxResourceLimitExceededErrorImpl
java.lang.Object
com.commercetools.api.models.error.MaxResourceLimitExceededErrorImpl
- All Implemented Interfaces:
ErrorObject
,MaxResourceLimitExceededError
,io.vrap.rmf.base.client.ModelBase
public class MaxResourceLimitExceededErrorImpl
extends Object
implements MaxResourceLimitExceededError, io.vrap.rmf.base.client.ModelBase
Returned when a resource type cannot be created as it has reached its limits.
The limits must be adjusted for this resource before sending the request again.
-
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.MaxResourceLimitExceededError
MAX_RESOURCE_LIMIT_EXCEEDED
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
getCode()
Error identifier.Resource type that reached its maximum limit of configured elements (for example, 100 Zones per Project)."You have exceeded the limit of $limit resources of type $resourceTypeId."
int
hashCode()
void
setExceededResource
(ReferenceTypeId exceededResource) Resource type that reached its maximum limit of configured elements (for example, 100 Zones per Project).void
setMessage
(String message) "You have exceeded the limit of $limit resources of type $resourceTypeId."
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 com.commercetools.api.models.error.MaxResourceLimitExceededError
withMaxResourceLimitExceededError
Methods inherited from interface io.vrap.rmf.base.client.ModelBase
reflectionString, reflectionString
-
Constructor Details
-
MaxResourceLimitExceededErrorImpl
public MaxResourceLimitExceededErrorImpl()create empty instance
-
-
Method Details
-
getCode
Description copied from interface:ErrorObject
Error identifier.
- Specified by:
getCode
in interfaceErrorObject
- Specified by:
getCode
in interfaceMaxResourceLimitExceededError
- Returns:
- code
-
getMessage
"You have exceeded the limit of $limit resources of type $resourceTypeId."
- Specified by:
getMessage
in interfaceErrorObject
- Specified by:
getMessage
in interfaceMaxResourceLimitExceededError
- Returns:
- message
-
values
Error-specific additional fields.
- Specified by:
values
in interfaceErrorObject
- Returns:
- map of the pattern property values
-
getExceededResource
Resource type that reached its maximum limit of configured elements (for example, 100 Zones per Project).
- Specified by:
getExceededResource
in interfaceMaxResourceLimitExceededError
- Returns:
- exceededResource
-
setMessage
Description copied from interface:MaxResourceLimitExceededError
"You have exceeded the limit of $limit resources of type $resourceTypeId."
- Specified by:
setMessage
in interfaceErrorObject
- Specified by:
setMessage
in interfaceMaxResourceLimitExceededError
- 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
-
setExceededResource
Description copied from interface:MaxResourceLimitExceededError
Resource type that reached its maximum limit of configured elements (for example, 100 Zones per Project).
- Specified by:
setExceededResource
in interfaceMaxResourceLimitExceededError
- Parameters:
exceededResource
- value to be set
-
equals
-
hashCode
-