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|
Initialize the exception for an aggregate with given
|Modifier and Type||Method and Description|
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- The identifier of the compromised aggregate
public String getAggregateIdentifier()
Copyright © 2010–2020. All rights reserved.