java.lang.Object
java.lang.Throwable
java.lang.Exception
org.fuin.ddd4j.core.AbstractAggregateException
org.fuin.ddd4j.core.AbstractVersionedAggregateException
org.fuin.ddd4j.core.AggregateAlreadyExistsException
- All Implemented Interfaces:
Serializable,org.fuin.objects4j.common.ExceptionShortIdentifable
public final class AggregateAlreadyExistsException
extends AbstractVersionedAggregateException
implements org.fuin.objects4j.common.ExceptionShortIdentifable
An aggregate already existed when trying to create it.
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionAggregateAlreadyExistsException(@NotNull String type, @NotNull String id, int version) Constructor with string data.AggregateAlreadyExistsException(@NotNull EntityType type, @NotNull AggregateRootId id, int version) Constructor with typed data. -
Method Summary
Methods inherited from class org.fuin.ddd4j.core.AbstractVersionedAggregateException
getVersionMethods 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
-
AggregateAlreadyExistsException
public AggregateAlreadyExistsException(@NotNull @NotNull EntityType type, @NotNull @NotNull AggregateRootId id, int version) Constructor with typed data.- Parameters:
type- Type of the aggregate.id- Unique identifier of the aggregate.version- Actual version.
-
AggregateAlreadyExistsException
public AggregateAlreadyExistsException(@NotNull @NotNull String type, @NotNull @NotNull String id, int version) Constructor with string data.- Parameters:
type- Type of the aggregate.id- Unique identifier of the aggregate.version- Actual version.
-
-
Method Details
-
getShortId
- Specified by:
getShortIdin interfaceorg.fuin.objects4j.common.ExceptionShortIdentifable
-