Package org.axonframework.eventsourcing
Class AggregateDeletedException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.axonframework.common.AxonException
org.axonframework.common.AxonNonTransientException
org.axonframework.modelling.command.AggregateNotFoundException
org.axonframework.eventsourcing.AggregateDeletedException
- All Implemented Interfaces:
Serializable
Special case of the
AggregateNotFoundException that indicates that historic
information of an aggregate was found, but the aggregate has been deleted.- Since:
- 0.4
- Author:
- Allard Buijze
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionAggregateDeletedException(String aggregateIdentifier) Initialize a AggregateDeletedException for an aggregate identifier by givenaggregateIdentifierand a defaultmessage.AggregateDeletedException(String aggregateIdentifier, String message) Initialize a AggregateDeletedException for an aggregate identifier by givenaggregateIdentifierand givenmessage. -
Method Summary
Methods inherited from class org.axonframework.modelling.command.AggregateNotFoundException
getAggregateIdentifierMethods 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
-
AggregateDeletedException
Initialize a AggregateDeletedException for an aggregate identifier by givenaggregateIdentifierand givenmessage.- Parameters:
aggregateIdentifier- The identifier of the aggregate that has been deletedmessage- The message describing the cause of the exception
-
AggregateDeletedException
Initialize a AggregateDeletedException for an aggregate identifier by givenaggregateIdentifierand a defaultmessage.- Parameters:
aggregateIdentifier- The identifier of the aggregate that has been deleted
-