java.lang.Object
java.lang.Throwable
java.lang.Exception
org.fuin.ddd4j.core.AbstractAggregateException
org.fuin.ddd4j.core.AggregateDeletedException
- All Implemented Interfaces:
Serializable,org.fuin.objects4j.common.ExceptionShortIdentifable
public final class AggregateDeletedException
extends AbstractAggregateException
implements org.fuin.objects4j.common.ExceptionShortIdentifable
Signals that an aggregate of a given type and identifier was deleted from the repository.
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionAggregateDeletedException(@NotNull String type, @NotNull String id) Constructor with string data.AggregateDeletedException(@NotNull EntityType type, @NotNull AggregateRootId id) Constructor with all data. -
Method Summary
Methods inherited from class org.fuin.ddd4j.core.AbstractAggregateException
getId, getTypeMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
ELEMENT_NAME
Unique name of the element to use for XML and JSON marshalling/unmarshalling.- See Also:
-
SHORT_ID
Unique short identifier of this exception.- See Also:
-
-
Constructor Details
-
AggregateDeletedException
public AggregateDeletedException(@NotNull @NotNull EntityType type, @NotNull @NotNull AggregateRootId id) Constructor with all data.- Parameters:
type- Type of the aggregate.id- Unique identifier of the aggregate.
-
AggregateDeletedException
Constructor with string data.- Parameters:
type- Type of the aggregate.id- Unique identifier of the aggregate.
-
-
Method Details
-
getShortId
- Specified by:
getShortIdin interfaceorg.fuin.objects4j.common.ExceptionShortIdentifable
-