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:
  • Constructor Details

    • ConcurrentWriteException

      public ConcurrentWriteException(com.lexmark.saperion.exceptions.ErrorType error, Throwable cause)
      This is the constructor used for serialization.
      Parameters:
      error - the error model
      cause - the cause of the exception
    • ConcurrentWriteException

      public ConcurrentWriteException(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 Details

    • getErrorDetails

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