Class ConcurrentModificationErrorImpl
java.lang.Object
com.commercetools.importapi.models.errors.ConcurrentModificationErrorImpl
- All Implemented Interfaces:
ConcurrentModificationError
,ErrorObject
,io.vrap.rmf.base.client.ModelBase
public class ConcurrentModificationErrorImpl
extends Object
implements ConcurrentModificationError, io.vrap.rmf.base.client.ModelBase
The request conflicts with the current state of the involved resources. This error typically occurs when the request attempts to modify a resource that is out of date, that is, it has been modified by another client since the last time it was retrieved by the system attempting to update it. 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.importapi.models.errors.ConcurrentModificationError
CONCURRENT_MODIFICATION
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
getCode()
The resource in conflict.The current version of the resource.The version specified in the failed request.int
hashCode()
void
setConflictedResource
(Object conflictedResource) The resource in conflict.void
setCurrentVersion
(Long currentVersion) The current version of the resource.void
setMessage
(String message) set messagevoid
setSpecifiedVersion
(Long specifiedVersion) The version specified in the failed request.Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.commercetools.importapi.models.errors.ConcurrentModificationError
withConcurrentModificationError
Methods inherited from interface com.commercetools.importapi.models.errors.ErrorObject
withErrorObject
Methods inherited from interface io.vrap.rmf.base.client.ModelBase
reflectionString, reflectionString
-
Constructor Details
-
ConcurrentModificationErrorImpl
public ConcurrentModificationErrorImpl()create empty instance
-
-
Method Details
-
getCode
- Specified by:
getCode
in interfaceErrorObject
- Returns:
- code
-
getMessage
- Specified by:
getMessage
in interfaceErrorObject
- Returns:
- message
-
getSpecifiedVersion
The version specified in the failed request.
- Specified by:
getSpecifiedVersion
in interfaceConcurrentModificationError
- Returns:
- specifiedVersion
-
getCurrentVersion
The current version of the resource.
- Specified by:
getCurrentVersion
in interfaceConcurrentModificationError
- Returns:
- currentVersion
-
getConflictedResource
The resource in conflict.
- Specified by:
getConflictedResource
in interfaceConcurrentModificationError
- Returns:
- conflictedResource
-
setMessage
Description copied from interface:ErrorObject
set message- Specified by:
setMessage
in interfaceErrorObject
- Parameters:
message
- value to be set
-
setSpecifiedVersion
Description copied from interface:ConcurrentModificationError
The version specified in the failed request.
- Specified by:
setSpecifiedVersion
in interfaceConcurrentModificationError
- Parameters:
specifiedVersion
- value to be set
-
setCurrentVersion
Description copied from interface:ConcurrentModificationError
The current version of the resource.
- Specified by:
setCurrentVersion
in interfaceConcurrentModificationError
- Parameters:
currentVersion
- value to be set
-
setConflictedResource
Description copied from interface:ConcurrentModificationError
The resource in conflict.
- Specified by:
setConflictedResource
in interfaceConcurrentModificationError
- Parameters:
conflictedResource
- value to be set
-
equals
-
hashCode
public int hashCode()
-