Class ConcurrentWriteException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.lexmark.saperion.exceptions.EcmRuntimeException
com.lexmark.saperion.exceptions.runtime.ClientException
com.lexmark.saperion.exceptions.runtime.ConcurrentWriteException
- All Implemented Interfaces:
Serializable
public class ConcurrentWriteException
extends com.lexmark.saperion.exceptions.runtime.ClientException
This exception indicates that an operation failed because it tried to modify an outdated version of an object.
- Author:
- jschwarz
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class com.lexmark.saperion.exceptions.runtime.ClientException
com.lexmark.saperion.exceptions.runtime.ClientException.ClientError
-
Field Summary
Fields inherited from class com.lexmark.saperion.exceptions.runtime.ClientException
CLIENT_GENERAL_ERROR
-
Constructor Summary
ConstructorsConstructorDescriptionConcurrentWriteException
(com.lexmark.saperion.exceptions.ErrorType error, Throwable cause) This is the constructor used for serialization.ConcurrentWriteException
(String message, com.lexmark.saperion.ReferenceType latest, com.lexmark.saperion.ReferenceType writeAttempt) This constructor creates aConcurrentWriteException
that indicates that it was attempted to write on an entity referenced by given reference while the latest version of the object is referenced by the other given reference. -
Method Summary
Methods inherited from class com.lexmark.saperion.exceptions.EcmRuntimeException
createError, getDescriptionParameters, getErrorCode
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
ConcurrentWriteException
This is the constructor used for serialization.- Parameters:
error
- the error modelcause
- the cause of the exception
-
ConcurrentWriteException
public ConcurrentWriteException(String message, com.lexmark.saperion.ReferenceType latest, com.lexmark.saperion.ReferenceType writeAttempt) This constructor creates aConcurrentWriteException
that indicates that it was attempted to write on an entity referenced by given reference while the latest version of the object is referenced by the other given reference.- Parameters:
latest
- a reference to the latest versionwriteAttempt
- the reference on which a write was attemptedmessage
- a detailed error message
-
-
Method Details
-
getErrorDetails
- Overrides:
getErrorDetails
in classcom.lexmark.saperion.exceptions.EcmRuntimeException
-