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:
java.io.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:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ConcurrentWriteException(com.lexmark.saperion.exceptions.ErrorType error, java.lang.Throwable cause)
This is the constructor used for serialization.ConcurrentWriteException(java.lang.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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ConcurrentWriteDetails
getErrorDetails()
-
Methods inherited from class com.lexmark.saperion.exceptions.EcmRuntimeException
createError, getDescriptionParameters, getErrorCode
-
-
-
-
Constructor Detail
-
ConcurrentWriteException
public ConcurrentWriteException(com.lexmark.saperion.exceptions.ErrorType error, java.lang.Throwable cause)
This is the constructor used for serialization.- Parameters:
error
- the error modelcause
- the cause of the exception
-
ConcurrentWriteException
public ConcurrentWriteException(java.lang.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 Detail
-
getErrorDetails
public ConcurrentWriteDetails getErrorDetails()
- Overrides:
getErrorDetails
in classcom.lexmark.saperion.exceptions.EcmRuntimeException
-
-