Package org.axonframework.modelling
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.ConcurrencyException
- All Implemented Interfaces:
Serializable
Exception indicating that concurrent access to a repository was detected. Most likely, two threads were modifying the
same entity.
- Since:
- 0.3.0
- Author:
- Allard Buijze
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionConcurrencyException(String message) Initialize a ConcurrencyException with the givenmessage.ConcurrencyException(String message, Throwable cause) Initialize a ConcurrencyException with the givenmessageandcause. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
ConcurrencyException
Initialize a ConcurrencyException with the givenmessage.- Parameters:
message- The message describing the cause of the exception.
-
ConcurrencyException
Initialize a ConcurrencyException with the givenmessageandcause.- Parameters:
message- The message describing the cause of the exception.cause- The cause of the exception.
-