org.axonframework.eventsourcing
Class AggregateDeletedException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by org.axonframework.common.AxonException
                  extended by org.axonframework.common.AxonNonTransientException
                      extended by org.axonframework.repository.AggregateNotFoundException
                          extended by 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.
 
Method Summary
 
Methods inherited from class org.axonframework.repository.AggregateNotFoundException
getAggregateIdentifier
 
Methods inherited from class org.axonframework.common.AxonNonTransientException
isCauseOf
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

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 deleted
message - 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.