Class 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
    • 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

      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 a ConcurrentWriteException 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
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • 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 model
        cause - 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 a ConcurrentWriteException 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 version
        writeAttempt - the reference on which a write was attempted
        message - a detailed error message
    • Method Detail

      • getErrorDetails

        public ConcurrentWriteDetails getErrorDetails()
        Overrides:
        getErrorDetails in class com.lexmark.saperion.exceptions.EcmRuntimeException