Class AppendEventsTransactionRejectedException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.axonframework.common.AxonException
org.axonframework.common.AxonNonTransientException
org.axonframework.eventsourcing.eventstore.AppendEventsTransactionRejectedException
- All Implemented Interfaces:
Serializable
Exception indicating that a transaction was rejected due to conflicts detected in the events to append.
- Since:
- 5.0.0
- Author:
- Steven van Beelen, Allard Buijze
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs anAppendConditionAssertionExceptionwith the givenmessage. -
Method Summary
Modifier and TypeMethodDescriptionconflictingEventsDetected(ConsistencyMarker consistencyMarker) Constructs anAppendConditionAssertionExceptionnoting that theEventStorageEnginecontains events matching thecriteriapassed the givenconsistencyMarker.Methods inherited from class org.axonframework.common.AxonNonTransientException
isCauseOfMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
AppendEventsTransactionRejectedException
Constructs anAppendConditionAssertionExceptionwith the givenmessage.- Parameters:
message- The message of theAppendConditionAssertionExceptionunder construction.
-
-
Method Details
-
conflictingEventsDetected
public static AppendEventsTransactionRejectedException conflictingEventsDetected(@Nonnull ConsistencyMarker consistencyMarker) Constructs anAppendConditionAssertionExceptionnoting that theEventStorageEnginecontains events matching thecriteriapassed the givenconsistencyMarker.- Parameters:
consistencyMarker- The pointer in theEventStorageEngineafter which no events should've been appended that match theEventCriteriaof anAppendCondition.- Returns:
- An
AppendConditionAssertionExceptionnoting that theEventStorageEnginecontains events matching thecriteriapassed the givenconsistencyMarker.
-