Class GraphQLConcurrentModificationErrorImpl
java.lang.Object
com.commercetools.api.models.error.GraphQLConcurrentModificationErrorImpl
- All Implemented Interfaces:
GraphQLConcurrentModificationError
,GraphQLErrorObject
,io.vrap.rmf.base.client.ModelBase
public class GraphQLConcurrentModificationErrorImpl
extends Object
implements GraphQLConcurrentModificationError, io.vrap.rmf.base.client.ModelBase
Returned when the request conflicts with the current state of the involved resources. Typically, the request attempts to modify a resource that is out of date (that is modified by another client since it was last retrieved). The client application should resolve the conflict (with or without involving the end-user) before retrying the request.
-
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.GraphQLConcurrentModificationError
CONCURRENT_MODIFICATION
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
getCode()
Error identifier.Current version of the resource.int
hashCode()
void
setCurrentVersion
(Long currentVersion) Current version of the 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.GraphQLConcurrentModificationError
withGraphQLConcurrentModificationError
Methods inherited from interface com.commercetools.api.models.error.GraphQLErrorObject
withGraphQLErrorObject
Methods inherited from interface io.vrap.rmf.base.client.ModelBase
reflectionString, reflectionString
-
Constructor Details
-
GraphQLConcurrentModificationErrorImpl
create empty instance
-
-
Method Details
-
getCode
Description copied from interface:GraphQLErrorObject
Error identifier.
- Specified by:
getCode
in interfaceGraphQLConcurrentModificationError
- Specified by:
getCode
in interfaceGraphQLErrorObject
- Returns:
- code
-
values
Error-specific additional fields.
- Specified by:
values
in interfaceGraphQLErrorObject
- Returns:
- map of the pattern property values
-
getCurrentVersion
Current version of the resource.
- Specified by:
getCurrentVersion
in interfaceGraphQLConcurrentModificationError
- Returns:
- currentVersion
-
setValue
Description copied from interface:GraphQLErrorObject
Error-specific additional fields.
- Specified by:
setValue
in interfaceGraphQLErrorObject
- Parameters:
key
- property namevalue
- property value
-
setCurrentVersion
Description copied from interface:GraphQLConcurrentModificationError
Current version of the resource.
- Specified by:
setCurrentVersion
in interfaceGraphQLConcurrentModificationError
- Parameters:
currentVersion
- value to be set
-
equals
-
hashCode
-