public class AggregateRolledBackException extends AxonException
This typically occurs when multiple nested Units of Work operate on the same Aggregate instance, and that one of these Units of Work has been rolled back. In such case, the parent Unit of Work cannot guarantee that the state of the Aggregate is correct, and should (in such case) be rolled back.
Constructor and Description |
---|
AggregateRolledBackException(String aggregateIdentifier)
Initialize the exception for an aggregate with given
aggregateIdentifier . |
Modifier and Type | Method and Description |
---|---|
String |
getAggregateIdentifier()
Returns the identifier of the compromised aggregate.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public AggregateRolledBackException(String aggregateIdentifier)
aggregateIdentifier
.aggregateIdentifier
- The identifier of the compromised aggregatepublic String getAggregateIdentifier()
Copyright © 2010–2023. All rights reserved.