Class 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:
  • Constructor Details

    • AggregateDeletedException

      public AggregateDeletedException(String 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(String 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