Class ReadWriteConflict

  • All Implemented Interfaces:
    Serializable

    public class ReadWriteConflict
    extends ControlFlowError
    A ControlFlowError thrown when a reading or writing a TxnObject failed, e.g. because it was locked or because a read or write conflict was detected.

    A ReadWriteConflict can in most cases be solved by retrying the Txn (this will automatically be done by the TxnExecutor).

    Author:
    Peter Veentjer.
    See Also:
    Serialized Form
    • Constructor Detail

      • ReadWriteConflict

        public ReadWriteConflict​(boolean fillStackTrace)
        Creates a new ReadWriteConflict.
        Parameters:
        fillStackTrace - if the StackTrace should be filled.
      • ReadWriteConflict

        public ReadWriteConflict​(String message)
        Creates a new ReadWriteConflict.
        Parameters:
        message - the message of the ReadWriteConflict.
      • ReadWriteConflict

        public ReadWriteConflict​(String message,
                                 Throwable cause)
        Creates a new ReadWriteConflict.
        Parameters:
        message - the message of the ReadWriteConflict.
        cause - the cause of the ReadWriteConflict.