org.axonframework.repository
Class ConflictingAggregateVersionException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by org.axonframework.util.AxonException
                  extended by org.axonframework.util.AxonNonTransientException
                      extended by org.axonframework.repository.ConflictingModificationException
                          extended by org.axonframework.repository.ConflictingAggregateVersionException
All Implemented Interfaces:
Serializable

public class ConflictingAggregateVersionException
extends ConflictingModificationException

Exception indicating that the version of a loaded aggregate did not match the given expected version number. This typically means that the aggregate has been modified by another thread between the moment data was queried, and the command modifying the aggregate was handled.

Since:
0.6
Author:
Allard Buijze
See Also:
Serialized Form

Constructor Summary
ConflictingAggregateVersionException(String message)
          Initializes the exception using the given message.
ConflictingAggregateVersionException(String message, Throwable cause)
          Initializes the exception using 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

ConflictingAggregateVersionException

public ConflictingAggregateVersionException(String message)
Initializes the exception using the given message.

Parameters:
message - The message describing the exception

ConflictingAggregateVersionException

public ConflictingAggregateVersionException(String message,
                                            Throwable cause)
Initializes the exception using the given message and cause.

Parameters:
message - The message describing the exception
cause - The underlying cause of the exception


Copyright © 2011. All Rights Reserved.