Class AggregateNotFoundException

All Implemented Interfaces:
Serializable, org.fuin.objects4j.common.ExceptionShortIdentifable

public final class AggregateNotFoundException extends AbstractAggregateException implements org.fuin.objects4j.common.ExceptionShortIdentifable
Signals that an aggregate of a given type and identifier was not found in the repository.
See Also:
  • Field Details

    • ELEMENT_NAME

      public static final String ELEMENT_NAME
      Unique name of the element to use for XML and JSON marshalling/unmarshalling.
      See Also:
    • SHORT_ID

      public static final String SHORT_ID
      Unique short identifier of this exception.
      See Also:
  • Constructor Details

    • AggregateNotFoundException

      public AggregateNotFoundException(@NotNull @NotNull EntityType type, @NotNull @NotNull AggregateRootId id)
      Constructor with all data.
      Parameters:
      type - Type of the aggregate.
      id - Unique identifier of the aggregate.
    • AggregateNotFoundException

      public AggregateNotFoundException(@NotNull @NotNull String type, @NotNull @NotNull String id)
      Constructor with string data.
      Parameters:
      type - Type of the aggregate.
      id - Unique identifier of the aggregate.
  • Method Details

    • getShortId

      public final String getShortId()
      Specified by:
      getShortId in interface org.fuin.objects4j.common.ExceptionShortIdentifable