org.axonframework.repository
Class ConcurrencyException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by org.axonframework.common.AxonException
                  extended by org.axonframework.common.AxonTransientException
                      extended by org.axonframework.repository.ConcurrencyException
All Implemented Interfaces:
Serializable

public class ConcurrencyException
extends 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:
Serialized Form

Constructor Summary
ConcurrencyException(String message)
          Initialize a ConcurrencyException with the given message.
ConcurrencyException(String message, Throwable cause)
          Initialize a ConcurrencyException with the given message and cause.
 
Method Summary
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, 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

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


Copyright © 2010-2016. All Rights Reserved.