public class AggregateStateCorruptedException extends AxonTransientException
AggregateBlacklistedException
is thrown. Each subsequent time
state changes are applied to a blacklisted aggregate, an AggregateStateCorruptedException is thrown.
It is generally safe to retry any commands that resulted in this exception, unless the cause is clearly
non-transient.Constructor and Description |
---|
AggregateStateCorruptedException(String aggregateIdentifier,
String message)
Initializes the exception with given
aggregateIdentifier and given explanatory
message . |
AggregateStateCorruptedException(String aggregateIdentifier,
String message,
Throwable cause)
Initializes the exception with given
aggregateIdentifier , given explanatory message
and cause . |
Modifier and Type | Method and Description |
---|---|
String |
getAggregateIdentifier()
Returns the identifier of the blacklisted aggregate.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public AggregateStateCorruptedException(String aggregateIdentifier, String message)
aggregateIdentifier
and given explanatory
message
.aggregateIdentifier
- The identifier of the blacklisted aggregatemessage
- The message explaining why the blacklisting occurredpublic AggregateStateCorruptedException(String aggregateIdentifier, String message, Throwable cause)
aggregateIdentifier
, given explanatory message
and cause
.aggregateIdentifier
- The identifier of the blacklisted aggregatemessage
- The message explaining why the blacklisting occurredcause
- The cause of the blacklistpublic String getAggregateIdentifier()
Copyright © 2010–2018. All rights reserved.