Class ConcurrencyException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.axonframework.common.AxonException
org.axonframework.common.AxonTransientException
org.axonframework.modelling.command.ConcurrencyException
All Implemented Interfaces:
Serializable

public class ConcurrencyException extends org.axonframework.common.AxonTransientException
Exception indicating that concurrent access to a repository was detected. Most likely, two threads were modifying the same aggregate.
Since:
0.3
Author:
Allard Buijze
See Also:
  • Constructor Details

    • ConcurrencyException

      public ConcurrencyException(String message)
      Initialize a ConcurrencyException with the given message.
      Parameters:
      message - The message describing the cause of the exception
    • ConcurrencyException

      public ConcurrencyException(String message, Throwable cause)
      Initialize a ConcurrencyException with the given message and cause.
      Parameters:
      message - The message describing the cause of the exception
      cause - The cause of the exception