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.repository.AggregateNotFoundException
org.axonframework.eventsourcing.AggregateDeletedException
- All Implemented Interfaces:
- Serializable
public class AggregateDeletedException
- extends AggregateNotFoundException
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:
- Serialized Form
Constructor Summary |
AggregateDeletedException(Object aggregateIdentifier)
Initialize a AggregateDeletedException for an aggregate identifier by given aggregateIdentifier and
a default message . |
AggregateDeletedException(Object aggregateIdentifier,
String message)
Initialize a AggregateDeletedException for an aggregate identifier by given aggregateIdentifier and
given message . |
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
AggregateDeletedException
public AggregateDeletedException(Object aggregateIdentifier,
String message)
- Initialize a AggregateDeletedException for an aggregate identifier by given
aggregateIdentifier
and
given message
.
- Parameters:
aggregateIdentifier
- The identifier of the aggregate that has been deletedmessage
- The message describing the cause of the exception
AggregateDeletedException
public AggregateDeletedException(Object aggregateIdentifier)
- Initialize a AggregateDeletedException for an aggregate identifier by given
aggregateIdentifier
and
a default message
.
- Parameters:
aggregateIdentifier
- The identifier of the aggregate that has been deleted
Copyright © 2010-2016. All Rights Reserved.