org.axonframework.repository
Class ConflictingModificationException

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.AxonNonTransientException
                      extended by org.axonframework.repository.ConflictingModificationException
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
ConflictingAggregateVersionException

public class ConflictingModificationException
extends AxonNonTransientException

Root of a hierarchy of exceptions indicating the detection of conflicting concurrent modifications. These conflicts are typically detected when aggregates are loaded or saved while another action has made changes to them.

This exception is non-transient, meaning that the the exception will occur when retrying the action. Typically, user interaction or confirmation is needed before the failed action can be retried.

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

Constructor Summary
ConflictingModificationException(String message)
          Initializes the exception using the given message.
ConflictingModificationException(String message, Throwable cause)
          Initializes the exception using the given message and cause.
 
Method Summary
 
Methods inherited from class org.axonframework.common.AxonNonTransientException
isCauseOf
 
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

ConflictingModificationException

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

Parameters:
message - The message describing the exception

ConflictingModificationException

public ConflictingModificationException(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 © 2010-2016. All Rights Reserved.